MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ToolbarZoomInClick

Function ToolbarZoomInClick

src/toolbar_gui.cpp:858–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856/* --- Zoom in button --- */
857
858static CallBackFunction ToolbarZoomInClick(Window *w)
859{
860 if (DoZoomInOutWindow(ZOOM_IN, GetMainWindow())) {
861 w->HandleButtonClick((_game_mode == GM_EDITOR) ? (WidgetID)WID_TE_ZOOM_IN : (WidgetID)WID_TN_ZOOM_IN);
862 }
863 return CBF_NONE;
864}
865
866/* --- Zoom out button --- */
867

Callers 2

OnHotkeyMethod · 0.85
OnHotkeyMethod · 0.85

Calls 3

DoZoomInOutWindowFunction · 0.85
GetMainWindowFunction · 0.85
HandleButtonClickMethod · 0.80

Tested by

no test coverage detected