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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user