mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 03:53:07 +01:00
Merge pull request #899 from duncanspumpkin/scenery
Add hack to fix scenery scroll bar
This commit is contained in:
@@ -570,12 +570,16 @@ static void window_scenery_resize()
|
||||
if (w->height < w->min_height) {
|
||||
w->height = w->min_height;
|
||||
window_invalidate(w);
|
||||
// HACK: For some reason invalidate has not been called
|
||||
window_event_invalidate_call(w);
|
||||
window_scenery_update_scroll(w);
|
||||
}
|
||||
|
||||
if (w->height > w->max_height) {
|
||||
w->height = w->max_height;
|
||||
window_invalidate(w);
|
||||
// HACK: For some reason invalidate has not been called
|
||||
window_event_invalidate_call(w);
|
||||
window_scenery_update_scroll(w);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user