1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-19 22:02:57 +01:00

Set viewport pos on zoom to avoid unnecessary draw and shift

This commit is contained in:
mix
2025-08-27 12:07:35 +01:00
parent 677f6c0717
commit dd1cc48ce3

View File

@@ -469,6 +469,9 @@ static constexpr float kWindowScrollLocations[][2] = {
}
}
v->viewPos.x = w.savedViewPos.x;
v->viewPos.y = w.savedViewPos.y;
// HACK: Prevents the redraw from failing when there is
// a window on top of the viewport.
auto* windowMgr = Ui::GetWindowManager();