invalidate dropdown when highlighted index is set to default

This commit is contained in:
IntelOrca 2016-01-25 18:12:13 +00:00
parent cbd5afde53
commit e3f0d22988
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}