mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r11739) -Fix [FS#1609]: Set the new scroll position after zooming in instead of before, as the zoom will cancel it out.
This commit is contained in:
parent
47d23eb003
commit
c94a6b8c78
|
@ -2231,8 +2231,8 @@ static void MainWindowWndProc(Window *w, WindowEvent *e)
|
||||||
case 'Z': {
|
case 'Z': {
|
||||||
Point pt = GetTileBelowCursor();
|
Point pt = GetTileBelowCursor();
|
||||||
if (pt.x != -1) {
|
if (pt.x != -1) {
|
||||||
ScrollMainWindowTo(pt.x, pt.y);
|
|
||||||
if (e->we.keypress.keycode == 'Z') MaxZoomInOut(ZOOM_IN, w);
|
if (e->we.keypress.keycode == 'Z') MaxZoomInOut(ZOOM_IN, w);
|
||||||
|
ScrollMainWindowTo(pt.x, pt.y);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue