mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
invalidate dropdown when highlighted index is set to default
This commit is contained in:
@@ -1211,6 +1211,7 @@ void input_state_widget_pressed(int x, int y, int state, int widgetIndex, rct_wi
|
||||
if (gInputFlags & INPUT_FLAG_WIDGET_PRESSED) {
|
||||
if (gInputState == INPUT_STATE_DROPDOWN_ACTIVE) {
|
||||
gDropdownHighlightedIndex = gDropdownDefaultIndex;
|
||||
window_invalidate_by_class(WC_DROPDOWN);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user