mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #7655: Large portions of the screen do not invalidate properly
Also fixes #7676.
Error was introduced during refactoring in 85dc161c5a
.
This commit is contained in:
parent
9e9c2c072e
commit
9436dab66c
|
@ -482,12 +482,14 @@ public:
|
|||
if (mainWindow != nullptr)
|
||||
{
|
||||
auto viewport = window_get_viewport(mainWindow);
|
||||
auto zoomDifference = zoom - viewport->zoom;
|
||||
|
||||
mainWindow->viewport_target_sprite = SPRITE_INDEX_NULL;
|
||||
mainWindow->saved_view_x = x;
|
||||
mainWindow->saved_view_y = y;
|
||||
viewport->zoom = zoom;
|
||||
gCurrentRotation = rotation;
|
||||
auto zoomDifference = zoom - viewport->zoom;
|
||||
|
||||
if (zoomDifference != 0)
|
||||
{
|
||||
viewport->view_width <<= zoomDifference;
|
||||
|
|
Loading…
Reference in New Issue