Fix 'redefinition error' on win. - compiles, runs

This commit is contained in:
jonny_jr9 2023-12-10 18:14:24 +01:00
parent ac5873c9e7
commit 72ca020f27
3 changed files with 3 additions and 3 deletions

View File

@ -9,4 +9,4 @@ void renderGame();
int CreateSDLWindow(); int CreateSDLWindow();
void DestroyWindow(); void DestroySDLWindow();

View File

@ -48,7 +48,7 @@ int main(int argc, char *argv[])
} }
} else { } else {
DestroyWindow(); DestroySDLWindow();
SDL_Quit(); SDL_Quit();
return 0;} return 0;}
} }

View File

@ -98,7 +98,7 @@ int CreateSDLWindow(){
return 0; return 0;
} }
void DestroyWindow(){ void DestroySDLWindow(){
// Zerstöre das Fenster und beende SDL // Zerstöre das Fenster und beende SDL
SDL_DestroyRenderer(renderer); SDL_DestroyRenderer(renderer);
SDL_DestroyWindow(window); SDL_DestroyWindow(window);