mirror of https://github.com/OpenRCT2/OpenRCT2.git
Now resets scroll properly
This commit is contained in:
parent
6179888231
commit
c3d36c96ef
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue