Changeset - r8176:7c760005efb5
[Not reviewed]
master
0 1 0
peter1138 - 17 years ago 2008-01-01 18:35:31
peter1138@openttd.org
(svn r11739) -Fix [FS#1609]: Set the new scroll position after zooming in instead of before, as the zoom will cancel it out.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/main_gui.cpp
Show inline comments
 
@@ -2231,8 +2231,8 @@ static void MainWindowWndProc(Window *w,
 
			case 'Z': {
 
				Point pt = GetTileBelowCursor();
 
				if (pt.x != -1) {
 
					if (e->we.keypress.keycode == 'Z') MaxZoomInOut(ZOOM_IN, w);
 
					ScrollMainWindowTo(pt.x, pt.y);
 
					if (e->we.keypress.keycode == 'Z') MaxZoomInOut(ZOOM_IN, w);
 
				}
 
				break;
 
			}
0 comments (0 inline, 0 general)