diff --git a/src/window.c b/src/window.c index fe9363d2d4..266397aa43 100644 --- a/src/window.c +++ b/src/window.c @@ -642,7 +642,7 @@ int window_find_widget_from_point(rct_window *w, int x, int y) /** * Invalidates the specified window. - * rct2: 0x006EB31A + * rct2: 0x006EB13A * * @param window The window to invalidate (esi). */ @@ -924,7 +924,7 @@ void window_zoom_in(rct_window *w) w->saved_view_x += v->view_width >> 1; w->saved_view_y += v->view_height >> 1; - RCT2_CALLPROC_X(0x006EB13A, 0, 0, 0, 0, (int)w, 0, 0); + window_invalidate(w); } /** @@ -951,7 +951,7 @@ void window_zoom_out(rct_window *w) w->saved_view_x -= width / 2; w->saved_view_y -= height >> 1; - RCT2_CALLPROC_X(0x006EB13A, 0, 0, 0, 0, (int)w, 0, 0); + window_invalidate(w); } /** diff --git a/src/window_game_top_toolbar.c b/src/window_game_top_toolbar.c index ae7981d55a..4770f1dd01 100644 --- a/src/window_game_top_toolbar.c +++ b/src/window_game_top_toolbar.c @@ -447,7 +447,7 @@ static void window_game_top_toolbar_dropdown() default: return; } - RCT2_CALLPROC_X(0x6EB13A, 0, 0, 0, 0, (int)w, 0, 0); + window_invalidate(w); } } } diff --git a/src/window_peep.c b/src/window_peep.c index 049a36142b..72be7b5007 100644 --- a/src/window_peep.c +++ b/src/window_peep.c @@ -161,7 +161,7 @@ void window_peep_open(rct_peep* peep){ } window->page = 0; - RCT2_CALLPROC_X(0x006EB13A, 0, 0, 0, 0, (int)window, 0, 0); + window_invalidate(window); window->widgets = RCT2_GLOBAL(0x981D0C, rct_widget*); window->enabled_widgets = RCT2_GLOBAL(0x981D3C,uint32);