mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
Update gfx_sdl2.c
if fullscreened, escape to exit fullscreen
This commit is contained in:
parent
14b0282267
commit
848f7c352b
1 changed files with 5 additions and 0 deletions
|
@ -167,6 +167,11 @@ static void gfx_sdl_onkeydown(int scancode) {
|
||||||
|
|
||||||
configFullscreen = !configFullscreen;
|
configFullscreen = !configFullscreen;
|
||||||
}
|
}
|
||||||
|
else if (state[SDL_SCANCODE_ESCAPE] && configFullscreen)
|
||||||
|
{
|
||||||
|
SDL_SetWindowFullscreen(wnd, 0);
|
||||||
|
configFullscreen = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gfx_sdl_onkeyup(int scancode) {
|
static void gfx_sdl_onkeyup(int scancode) {
|
||||||
|
|
Loading…
Reference in a new issue