diff --git a/src/pc/gfx/gfx_sdl2.c b/src/pc/gfx/gfx_sdl2.c index 1afe5eab..1df686b6 100644 --- a/src/pc/gfx/gfx_sdl2.c +++ b/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) {