main_gui.c
changeset 5046 2b2375affc0a
parent 5045 3e734e178dae
child 5048 0223e3641590
--- a/main_gui.c	Tue Nov 07 13:06:02 2006 +0000
+++ b/main_gui.c	Tue Nov 07 13:08:42 2006 +0000
@@ -888,11 +888,6 @@
 	return true;
 }
 
-static void MaxZoomIn(void)
-{
-	while (DoZoomInOutWindow(ZOOM_IN, FindWindowById(WC_MAIN_WINDOW, 0) ) ) {}
-}
-
 static void ToolbarZoomInClick(Window *w)
 {
 	if (DoZoomInOutWindow(ZOOM_IN, FindWindowById(WC_MAIN_WINDOW, 0))) {
@@ -2272,7 +2267,7 @@
 				Point pt = GetTileBelowCursor();
 				if (pt.x != -1) {
 					ScrollMainWindowTo(pt.x, pt.y);
-					if (e->we.keypress.keycode == 'Z') MaxZoomIn();
+					if (e->we.keypress.keycode == 'Z') MaxZoomInOut(ZOOM_IN, w);
 				}
 				break;
 			}