Skip to content

Commit

Permalink
Minor updates to woodeneye-008.c from template.c
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 29, 2024
1 parent de2f4b3 commit ab3b89f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/game/02-woodeneye-008/woodeneye-008.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* This code is public domain. Feel free to use it for any purpose!
*/

#define SDL_MAIN_USE_CALLBACKS 1 /* use the callbacks instead of main() */
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
Expand Down Expand Up @@ -482,8 +486,5 @@ SDL_AppResult SDL_AppIterate(void *appstate)

void SDL_AppQuit(void *appstate, SDL_AppResult result)
{
AppState *as = appstate;
SDL_DestroyRenderer(as->renderer);
SDL_DestroyWindow(as->window);
SDL_Quit();
}
/* SDL will clean up the window/renderer for us. */
}

0 comments on commit ab3b89f

Please sign in to comment.