This commit is contained in:
lif 2024-12-16 02:11:15 -08:00
parent b798e4727f
commit e93e222c52

4
main.c
View file

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