Update gfx_sdl2.c

if fullscreened, escape to exit fullscreen
This commit is contained in:
HengiFettlich 2020-05-08 12:24:40 +02:00
parent 5a87d7b428
commit 44c381f70a
1 changed files with 5 additions and 0 deletions

View File

@ -167,6 +167,11 @@ static void gfx_sdl_onkeydown(int scancode) {
configFullscreen = !configFullscreen;
}
else if (state[SDL_SCANCODE_ESCAPE] && configFullscreen)
{
SDL_SetWindowFullscreen(wnd, 0);
configFullscreen = false;
}
}
static void gfx_sdl_onkeyup(int scancode) {