diff options
author | belugas <belugas@openttd.org> | 2008-06-13 01:17:03 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-06-13 01:17:03 +0000 |
commit | 3d07e5ca10cb4a4c86470c3d67701a61698625ee (patch) | |
tree | b4fae5b055a20403e680e1658dcaec3379338a5d | |
parent | e40f835a7efae2cb00b626ab6b66951c16bc1337 (diff) | |
download | openttd-3d07e5ca10cb4a4c86470c3d67701a61698625ee.tar.xz |
(svn r13503) -Fix(r13173)[FS#2073]: Wrong widget numbers & event handlers were assigned to the zoom in and out buttons in the scenario editor
-rw-r--r-- | src/toolbar_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index f980c6930..3b878815e 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -1046,13 +1046,13 @@ struct ScenarioEditorToolbarWindow : Window { case WKC_NUM_PLUS: case WKC_EQUALS: case WKC_SHIFT | WKC_EQUALS: - case WKC_SHIFT | WKC_F5: ToolbarZoomInClick(this); break; + case WKC_SHIFT | WKC_F5: ToolbarScenZoomIn(this); break; /* those following are all fall through */ case WKC_NUM_MINUS: case WKC_MINUS: case WKC_SHIFT | WKC_MINUS: - case WKC_SHIFT | WKC_F6: ToolbarZoomOutClick(this); break; + case WKC_SHIFT | WKC_F6: ToolbarScenZoomOut(this); break; case 'L': ShowEditorTerraformToolbar(); break; case 'M': ShowSmallMap(); break; @@ -1155,7 +1155,7 @@ struct ScenarioEditorToolbarWindow : Window { virtual void OnInvalidateData(int data) { - if (FindWindowById(WC_MAIN_WINDOW, 0) != NULL) HandleZoomMessage(this, FindWindowById(WC_MAIN_WINDOW, 0)->viewport, 17, 18); + if (FindWindowById(WC_MAIN_WINDOW, 0) != NULL) HandleZoomMessage(this, FindWindowById(WC_MAIN_WINDOW, 0)->viewport, 9, 10); } }; |