mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 21:43:06 +01:00
Fix dirty blocks regression (#17959)
This commit is contained in:
@@ -1940,7 +1940,7 @@ void viewport_invalidate(const rct_viewport* viewport, const ScreenRect& screenR
|
||||
topLeft = { viewport->zoom.ApplyInversedTo(topLeft.x), viewport->zoom.ApplyInversedTo(topLeft.y) };
|
||||
topLeft += viewport->pos;
|
||||
|
||||
bottomRight = { std::max(bottomRight.x, viewportRight), std::max(bottomRight.y, viewportBottom) };
|
||||
bottomRight = { std::min(bottomRight.x, viewportRight), std::min(bottomRight.y, viewportBottom) };
|
||||
bottomRight -= viewport->viewPos;
|
||||
bottomRight = { viewport->zoom.ApplyInversedTo(bottomRight.x), viewport->zoom.ApplyInversedTo(bottomRight.y) };
|
||||
bottomRight += viewport->pos;
|
||||
|
||||
Reference in New Issue
Block a user