First working implemention

Cleanup also debug messages
This commit is contained in:
Francesco Abbate
2021-04-23 14:54:25 +02:00
parent 685b8c82d0
commit 33fe7295c0
4 changed files with 50 additions and 85 deletions
+1 -4
View File
@@ -125,9 +125,6 @@ int main(int argc, char **argv) {
window = SDL_CreateWindow(
"", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, dm.w * 0.8, dm.h * 0.8,
SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_HIDDEN);
fprintf(stderr, "New window: %p\n", window); fflush(stderr);
init_window_icon();
ren_init(window);
@@ -203,7 +200,7 @@ init_lua:
}
lua_close(L);
SDL_DestroyWindow(window);
ren_free_window_resources();
return EXIT_SUCCESS;
}