diff --git a/main.c b/main.c index e49fef4..1158524 100644 --- a/main.c +++ b/main.c @@ -421,7 +421,7 @@ SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event) { switch (event->type) { case SDL_EVENT_QUIT: SDL_Log("Quit!"); - return false; + return SDL_APP_SUCCESS; case SDL_EVENT_KEY_DOWN: switch (event->key.key) { @@ -444,6 +444,8 @@ SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event) { default: break; } + + return SDL_APP_CONTINUE; } switch (event->type) {