mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 18:31:59 -05:00
Fix: buttons sometimes stay pressed
In the invalidate function of the tile inspector, the checkboxes get checked to match the selected tile element. Some of those checkboxes share their widget index with buttons from other pages. When a checkbox is checked, the it's set to be "pressed", which causes the butons in the other tabs so appear that way. This behaviour is fixed by unpressing widgets when switching to another page.
This commit is contained in:
parent
fe40005372
commit
0d77c279aa
1 changed files with 1 additions and 0 deletions
|
@ -1352,6 +1352,7 @@ static void window_tile_inspector_set_page(rct_window *w, const TILE_INSPECTOR_P
|
|||
w->widgets = PageWidgets[page];
|
||||
w->enabled_widgets = PageEnabledWidgets[page];
|
||||
w->disabled_widgets = PageDisabledWidgets[page];
|
||||
w->pressed_widgets = 0;
|
||||
}
|
||||
|
||||
static void window_tile_inspector_scrollmousedown(rct_window *w, sint32 scrollIndex, sint32 x, sint32 y)
|
||||
|
|
Loading…
Reference in a new issue