Browse Source

Update gfx_sdl2.c

if fullscreened, escape to exit fullscreen
master
HengiFettlich 2 years ago
parent
commit
848f7c352b
  1. 5
      src/pc/gfx/gfx_sdl2.c

5
src/pc/gfx/gfx_sdl2.c

@ -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) {

Loading…
Cancel
Save