From e0a367451f04988790384fc59d998b6dcb6bf2e3 Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Sun, 10 Sep 2017 14:31:51 +0500 Subject: [PATCH] ignore window resize event on fullscreen --- code/sdl/sdl_input.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/sdl/sdl_input.c b/code/sdl/sdl_input.c index 9abf1491..9514636d 100644 --- a/code/sdl/sdl_input.c +++ b/code/sdl/sdl_input.c @@ -1121,6 +1121,12 @@ static void IN_ProcessEvents( void ) width = e.window.data1; height = e.window.data2; + // ignore this event on fullscreen + if( cls.glconfig.isFullscreen ) + { + break; + } + // check if size actually changed if( cls.glconfig.vidWidth == width && cls.glconfig.vidHeight == height ) {