mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 22:34:33 +01:00
Fix #4213: FPS decreases with track window
The code must've been from before I got everything working properly, because removing both these lines does not cause any glitches in rendering.
This commit is contained in:
committed by
Ted John
parent
0be54fbac3
commit
501f0126fa
@@ -2446,9 +2446,6 @@ static void window_ride_main_invalidate(rct_window *w)
|
||||
window_ride_main_widgets[WIDX_RIDE_TYPE_APPLY].top = w->height - 17;
|
||||
window_ride_main_widgets[WIDX_RIDE_TYPE_APPLY].bottom = w->height - 4;
|
||||
|
||||
widget_invalidate(w, WIDX_VIEWPORT);
|
||||
widget_invalidate(w, WIDX_VIEW);
|
||||
|
||||
if (!gCheatsAllowArbitraryRideTypeChanges) {
|
||||
window_ride_main_widgets[WIDX_RIDE_TYPE].type = WWT_EMPTY;
|
||||
window_ride_main_widgets[WIDX_RIDE_TYPE_INCREASE].type = WWT_EMPTY;
|
||||
|
||||
Reference in New Issue
Block a user