From a5ed94f2782a6197f9562d76773a0eaab99bfa1c Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Fri, 22 Aug 2008 10:12:49 -0400 Subject: [PATCH] Add zoom limit until the x, y system is redesigned not to have values > 2^16 (which is the size limit of ClutterUnit) --- champlain/map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5