mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Now resets scroll properly
This commit is contained in:
@@ -360,6 +360,9 @@ static void window_editor_object_selection_mouseup()
|
||||
break;
|
||||
case WIDX_FILTER_CLEAR_BUTTON:
|
||||
memset(_filter_string, 0, sizeof(_filter_string));
|
||||
|
||||
w->scrolls->v_top = 0;
|
||||
|
||||
window_invalidate(w);
|
||||
break;
|
||||
}
|
||||
@@ -1051,6 +1054,10 @@ static void window_editor_object_selection_textinput()
|
||||
}
|
||||
|
||||
filter_update_counts();
|
||||
|
||||
w->scrolls->v_top = 0;
|
||||
|
||||
window_invalidate(w);
|
||||
}
|
||||
|
||||
static bool filter_string(rct_object_entry *entry)
|
||||
|
||||
Reference in New Issue
Block a user