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

Function ToolbarZoomOutClick

src/toolbar_gui.cpp:868–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

866/* --- Zoom out button --- */
867
868static CallBackFunction ToolbarZoomOutClick(Window *w)
869{
870 if (DoZoomInOutWindow(ZOOM_OUT, GetMainWindow())) {
871 w->HandleButtonClick((_game_mode == GM_EDITOR) ? (WidgetID)WID_TE_ZOOM_OUT : (WidgetID)WID_TN_ZOOM_OUT);
872 }
873 return CBF_NONE;
874}
875
876/* --- Rail button menu --- */
877

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