mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-19 23:15:46 +01:00
make window freeing more manual
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user