From 0636dc45bd6c3cadfae0824227ca25c10812c6ec Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 12 Nov 2019 02:04:18 +0300 Subject: [PATCH] engine: sdl: fix resizing event handling --- engine/platform/sdl/events.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/platform/sdl/events.c b/engine/platform/sdl/events.c index 4b0884e2..6a34b634 100644 --- a/engine/platform/sdl/events.c +++ b/engine/platform/sdl/events.c @@ -569,11 +569,10 @@ static void SDLash_EventFilter( SDL_Event *event ) break; case SDL_WINDOWEVENT_RESIZED: { - int w = VID_MIN_WIDTH, h = VID_MIN_HEIGHT; if( vid_fullscreen->value ) break; - VID_SaveWindowSize( w, h ); + VID_SaveWindowSize( event->window.data1, event->window.data2 ); SCR_VidInit(); // tell the client.dll that vid_mode has changed break; }