mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
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].top = w->height - 17;
|
||||||
window_ride_main_widgets[WIDX_RIDE_TYPE_APPLY].bottom = w->height - 4;
|
window_ride_main_widgets[WIDX_RIDE_TYPE_APPLY].bottom = w->height - 4;
|
||||||
|
|
||||||
widget_invalidate(w, WIDX_VIEWPORT);
|
|
||||||
widget_invalidate(w, WIDX_VIEW);
|
|
||||||
|
|
||||||
if (!gCheatsAllowArbitraryRideTypeChanges) {
|
if (!gCheatsAllowArbitraryRideTypeChanges) {
|
||||||
window_ride_main_widgets[WIDX_RIDE_TYPE].type = WWT_EMPTY;
|
window_ride_main_widgets[WIDX_RIDE_TYPE].type = WWT_EMPTY;
|
||||||
window_ride_main_widgets[WIDX_RIDE_TYPE_INCREASE].type = WWT_EMPTY;
|
window_ride_main_widgets[WIDX_RIDE_TYPE_INCREASE].type = WWT_EMPTY;
|
||||||
|
|
Loading…
Reference in New Issue