Changeset - r9512:b0f6a2af18cf
[Not reviewed]
master
0 1 0
belugas - 16 years ago 2008-06-13 01:17:03
belugas@openttd.org
(svn r13503) -Fix(r13173)[FS#2073]: Wrong widget numbers & event handlers were assigned to the zoom in and out buttons in the scenario editor
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/toolbar_gui.cpp
Show inline comments
 
@@ -1046,13 +1046,13 @@ struct ScenarioEditorToolbarWindow : Win
 
			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 : Win
 

	
 
	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);
 
	}
 
};
 

	
0 comments (0 inline, 0 general)