1
0
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:
Robert Jordan
2015-06-05 19:02:20 -04:00
parent 6179888231
commit c3d36c96ef

View File

@@ -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)