Deferred showing window until after the first frame has rendered
Fixes #97
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user