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

Make gSavedView use ScreenCoordsXY

This commit is contained in:
Tulio Leao
2020-03-01 10:49:36 -03:00
parent 8b36cce37c
commit 2cfac98342
2 changed files with 2 additions and 4 deletions

View File

@@ -732,8 +732,7 @@ int32_t cmdline_for_screenshot(const char** argv, int32_t argc, ScreenshotOption
}
else
{
viewport.viewPos = { gSavedView.x - (viewport.view_width / 2), gSavedView.y - (viewport.view_height / 2) };
viewport.viewPos = { gSavedView - ScreenCoordsXY{ (viewport.view_width / 2), (viewport.view_height / 2) } };
viewport.zoom = gSavedViewZoom;
gCurrentRotation = gSavedViewRotation;
}