fullscreen mode

main
Henri Vasserman 2025-01-07 21:10:38 +02:00
parent 073453e89a
commit 0e56705be8
1 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,7 @@ int main() {
Uint64 last = SDL_GetTicks();
int running = 1;
int fullscreen = 0;
#ifdef NDEBUG
int debug = 0;
@ -77,6 +78,11 @@ int main() {
case SDLK_ESCAPE:
case SDLK_Q: running = 0; break;
case SDLK_G: debug ^= 1; break;
case SDLK_F: {
fullscreen ^= 1;
SDL_SetWindowFullscreen(window, fullscreen);
break;
}
}
break;
}