Changeset - r17238:104199db2aab
[Not reviewed]
master
0 1 0
frosch - 13 years ago 2011-02-05 21:07:25
frosch@openttd.org
(svn r21988) -Change: Disable smooth scrolling for GHK_CENTER_ZOOM when zooming is also involved.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/main_gui.cpp
Show inline comments
 
@@ -314,8 +314,9 @@ struct MainWindow : Window
 
			case GHK_CENTER_ZOOM: {
 
				Point pt = GetTileBelowCursor();
 
				if (pt.x != -1) {
 
					bool instant = (num == GHK_CENTER_ZOOM && this->viewport->zoom != ZOOM_LVL_MIN);
 
					if (num == GHK_CENTER_ZOOM) MaxZoomInOut(ZOOM_IN, this);
 
					ScrollMainWindowTo(pt.x, pt.y);
 
					ScrollMainWindowTo(pt.x, pt.y, -1, instant);
 
				}
 
				break;
 
			}
0 comments (0 inline, 0 general)