Update sdl.c

This commit is contained in:
Jason Bou-Samra
2024-08-16 20:41:35 +10:00
committed by GitHub
parent 0e4e8817bc
commit aa0ea3f66d
+4 -4
View File
@@ -13,9 +13,9 @@ SDL_Surface* image;
SDL_Texture * texture;
///////////////////////// WINDOW PARMS /////////////////////////
#define WIDTH 1280 // pixels
#define HEIGHT 800 // pixels
#define TITLE "FUN COLUMNS" // window title
#define WIDTH 1280 // pixels
#define HEIGHT 800 // pixels
#define TITLE "FUN COLUMNS" // window title
/////////////////////// INITIALIZE SDL /////////////////////////
int initSDL () {
@@ -40,7 +40,7 @@ if (window == NULL) {
}
/////////////////////// SHUTDOWN SDL /////////////////////////
int shutdownSDL () {
int shutdownSDL (void) {
SDL_DestroyWindow (window); // free memory
SDL_Quit (); // shutdown entire sdl sub-systems
return 0;