make window freeing more manual

This commit is contained in:
2025-06-26 11:02:14 +02:00
parent a94e2d147b
commit c1d7f71a02
3 changed files with 9 additions and 9 deletions

View File

@@ -8,6 +8,7 @@
static void stop(void) {
debug("stopping...", );
window_close();
window_free();
SDL_Quit();
}
@@ -17,7 +18,8 @@ int main(int argc, char** argv) {
// register stop as exit function
atexit(stop);
window_open(game_init());
window_init(game_init());
window_open();
return 0;
}