From 1cc83a28a2450e311cf4378fb92dc8e659e7e420 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Thu, 20 Oct 2016 21:35:10 +0100 Subject: [PATCH] [SDL] minor tweak --- sdl/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sdl/main.c b/sdl/main.c index ee1ffe2..0273e7a 100644 --- a/sdl/main.c +++ b/sdl/main.c @@ -332,8 +332,7 @@ static int sdl_control_update(SDLKey keystate) case SDLK_F2: { - if (fullscreen) fullscreen = 0; - else fullscreen = SDL_FULLSCREEN; + fullscreen = (fullscreen ? 0 : SDL_FULLSCREEN); sdl_video.surf_screen = SDL_SetVideoMode(VIDEO_WIDTH, VIDEO_HEIGHT, 16, SDL_SWSURFACE | fullscreen); break; }