Now resets scroll properly

This commit is contained in:
Robert Jordan 2015-06-05 19:02:20 -04:00
parent 6179888231
commit c3d36c96ef
1 changed files with 7 additions and 0 deletions

View File

@ -360,6 +360,9 @@ static void window_editor_object_selection_mouseup()
break; break;
case WIDX_FILTER_CLEAR_BUTTON: case WIDX_FILTER_CLEAR_BUTTON:
memset(_filter_string, 0, sizeof(_filter_string)); memset(_filter_string, 0, sizeof(_filter_string));
w->scrolls->v_top = 0;
window_invalidate(w); window_invalidate(w);
break; break;
} }
@ -1051,6 +1054,10 @@ static void window_editor_object_selection_textinput()
} }
filter_update_counts(); filter_update_counts();
w->scrolls->v_top = 0;
window_invalidate(w);
} }
static bool filter_string(rct_object_entry *entry) static bool filter_string(rct_object_entry *entry)