diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index 73cf509c58..71d0515b61 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -713,14 +713,11 @@ void platform_set_cursor(uint8 cursor) void platform_refresh_video() { - int width = gScreenWidth; - int height = gScreenHeight; - SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, gConfigGeneral.minimize_fullscreen_focus_loss ? "1" : "0"); drawing_engine_dispose(); drawing_engine_init(); - drawing_engine_resize(width, height); + drawing_engine_resize(); drawing_engine_set_palette(gPalette); gfx_invalidate_screen(); } diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index 60b74ebf44..aecc84aa2f 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -972,7 +972,7 @@ static rct_window *ride_create_or_find_construction_window(int rideIndex) if (w == NULL || w->number != rideIndex) { window_close_construction_windows(); _currentRideIndex = rideIndex; - w = window_ride_construction_open(rideIndex); + w = window_ride_construction_open(); } else { sub_6C9627(); _currentRideIndex = rideIndex; diff --git a/src/openrct2/world/mapgen.c b/src/openrct2/world/mapgen.c index ae05a381d0..26c5a6d119 100644 --- a/src/openrct2/world/mapgen.c +++ b/src/openrct2/world/mapgen.c @@ -79,7 +79,7 @@ static void mapgen_blob(int cx, int cy, int size, int height); static void mapgen_smooth_height(int iterations); static void mapgen_set_height(); -static void mapgen_simplex(); +static void mapgen_simplex(mapgen_settings *settings); static int _heightSize; static uint8 *_height;