From: Pierre-Luc Beaudoin Date: Fri, 22 Aug 2008 14:12:49 +0000 (-0400) Subject: Add zoom limit X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5ed94f2782a6197f9562d76773a0eaab99bfa1c;p=libchamplain Add zoom limit until the x, y system is redesigned not to have values > 2^16 (which is the size limit of ClutterUnit) --- diff --git a/champlain/map.c b/champlain/map.c index cabd35f..536e3b6 100644 --- a/champlain/map.c +++ b/champlain/map.c @@ -93,7 +93,8 @@ map_load_visible_tiles (Map* map, GdkRectangle viewport) gboolean map_zoom_in (Map* map) { - if(map->current_level->level + 1 <= map->zoom_levels) + if(map->current_level->level + 1 <= map->zoom_levels && + map->current_level->level + 1 <= 7) //FIXME Due to a ClutterUnit limitation (the x, y will have to be rethinked) { map_load_level(map, map->current_level->level + 1); return TRUE;