mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-19 05:52:27 +01:00
Set viewport pos on zoom to avoid unnecessary draw and shift
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user