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
commitc94a6b8c78a4b8dc2498c487b482ef85a0208bc2 (patch)
treef43eaa7ae2df3805ca7f40e4e15fc505c806ea04
parent47d23eb0035cddd59803c0062ef343b8c16e99e2 (diff)
downloadopenttd-c94a6b8c78a4b8dc2498c487b482ef85a0208bc2.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;
}