1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Rename global window functions to TitleCase (#19167)

This commit is contained in:
Hielke Morsink
2023-01-16 21:13:42 +01:00
committed by GitHub
parent 7f5934cc95
commit 6dafbbfb65
150 changed files with 1713 additions and 1720 deletions

View File

@@ -298,8 +298,8 @@ static rct_viewport GetGiantViewport(int32_t rotation, ZoomLevel zoom)
},
};
auto* const mainWindow = window_get_main();
const auto* const mainViewport = window_get_viewport(mainWindow);
auto* const mainWindow = WindowGetMain();
const auto* const mainViewport = WindowGetViewport(mainWindow);
const bool useViewClipping = (mainViewport != nullptr && mainViewport->flags & VIEWPORT_FLAG_CLIP_VIEW);
// Calculate the viewport bounds
@@ -352,8 +352,8 @@ void screenshot_giant()
const auto rotation = get_current_rotation();
auto zoom = ZoomLevel{ 0 };
auto* mainWindow = window_get_main();
const auto* vp = window_get_viewport(mainWindow);
auto* mainWindow = WindowGetMain();
const auto* vp = WindowGetViewport(mainWindow);
if (mainWindow != nullptr && vp != nullptr)
{
zoom = vp->zoom;