mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Fix #15439: Ride viewport is partially grey
The ride viewport does not work the same as other viewports due to the selection of views that it has. After refactoring the focus system to use a more streamlined approach the ride viewport lost its invalidation on resizing. If the ride window was to use the same viewport update code as say the guest window then the viewport focus still ends up incorrect due to it no longer centring the focus. Therefore the best approach was to lose the focus on resize and force a recalculation of it. Also renamed Focus2 to Focus as Focus2 was meant to just be fill in whilst removing the original focus structs.
This commit is contained in:
@@ -274,7 +274,7 @@ rct_window* WindowCreate(
|
||||
w->min_height = height;
|
||||
w->max_height = height;
|
||||
|
||||
w->focus2 = std::nullopt;
|
||||
w->focus = std::nullopt;
|
||||
w->page = 0;
|
||||
w->var_48C = 0;
|
||||
w->var_492 = 0;
|
||||
|
||||
Reference in New Issue
Block a user