Deferred showing window until after the first frame has rendered

Fixes #97
This commit is contained in:
rxi
2020-05-14 23:06:14 +01:00
parent b8d2805502
commit 5102088aca
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -89,8 +89,8 @@ int main(int argc, char **argv) {
SDL_GetCurrentDisplayMode(0, &dm);
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_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, dm.w * 0.8, dm.h * 0.8,
SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_HIDDEN);
init_window_icon();
ren_init(window);