| 1076 | } |
| 1077 | |
| 1078 | void MainWindowZoom(bool zoomIn, bool atCursor) |
| 1079 | { |
| 1080 | auto* mainWindow = WindowGetMain(); |
| 1081 | if (mainWindow == nullptr) |
| 1082 | return; |
| 1083 | |
| 1084 | if (gLegacyScene == LegacyScene::titleSequence) |
| 1085 | return; |
| 1086 | |
| 1087 | if (gLegacyScene == LegacyScene::scenarioEditor && getGameState().editorStep != Editor::Step::landscapeEditor) |
| 1088 | return; |
| 1089 | |
| 1090 | if (gLegacyScene == LegacyScene::trackDesignsManager) |
| 1091 | return; |
| 1092 | |
| 1093 | if (zoomIn) |
| 1094 | WindowZoomIn(*mainWindow, atCursor); |
| 1095 | else |
| 1096 | WindowZoomOut(*mainWindow, atCursor); |
| 1097 | } |
| 1098 | } // namespace OpenRCT2::Ui::Windows |
no test coverage detected