summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-01 18:35:31 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-01 18:35:31 +0000
commita63359573fabb64bb22eccc256210772f52ea331 (patch)
treef43eaa7ae2df3805ca7f40e4e15fc505c806ea04
parentc96fcfc21b336643153962ef4fbc3df99ec684ae (diff)
downloadopenttd-a63359573fabb64bb22eccc256210772f52ea331.tar.xz
(svn r11739) -Fix [FS#1609]: Set the new scroll position after zooming in instead of before, as the zoom will cancel it out.
-rw-r--r--src/main_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index f5fb8bf35..cf4ef3d54 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -2231,8 +2231,8 @@ static void MainWindowWndProc(Window *w, WindowEvent *e)
case 'Z': {
Point pt = GetTileBelowCursor();
if (pt.x != -1) {
- ScrollMainWindowTo(pt.x, pt.y);
if (e->we.keypress.keycode == 'Z') MaxZoomInOut(ZOOM_IN, w);
+ ScrollMainWindowTo(pt.x, pt.y);
}
break;
}