Skip to content

Commit

Permalink
Use enum constant instead of magic number for return value
Browse files Browse the repository at this point in the history
  • Loading branch information
invalidpagefault authored and madebr committed Jan 12, 2025
1 parent fca002a commit 532ee27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event)

case SDL_EVENT_KEY_DOWN: /* quit if user hits ESC key */
if (event->key.scancode == SDL_SCANCODE_ESCAPE) {
return 1;
return SDL_APP_SUCCESS;
}
break;

Expand Down

0 comments on commit 532ee27

Please sign in to comment.