Apply review suggestions

This commit is contained in:
Hielke Morsink committed 2021-12-01 00:11:45 +01:00
1 parent dbd50d08c6
commit 0f2dffcc16
3 files changed
+8 -8

No files matched your search

+3 -3
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;