1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 16:54:52 +01:00

Apply review suggestions

This commit is contained in:
Hielke Morsink
2021-10-01 23:57:33 +02:00
parent dbd50d08c6
commit 0f2dffcc16
3 changed files with 8 additions and 8 deletions

View File

@@ -387,10 +387,10 @@ void screenshot_giant()
throw std::runtime_error("Giant screenshot failed, unable to find a suitable destination path.");
}
auto rotation = get_current_rotation();
const auto rotation = get_current_rotation();
auto zoom = ZoomLevel{ 0 };
auto mainWindow = window_get_main();
auto vp = window_get_viewport(mainWindow);
auto* mainWindow = window_get_main();
const auto* vp = window_get_viewport(mainWindow);
if (mainWindow != nullptr && vp != nullptr)
{
zoom = vp->zoom;