init graphics (WIDESCREENDELTA) before HUD widgets

This commit is contained in:
Fabian Greffrath 2022-03-22 13:27:26 +01:00
parent 68177dfe22
commit a8fbe297bc

View File

@ -2357,6 +2357,9 @@ void D_DoomMain(void)
startloadgame = atoi(myargv[slot]); startloadgame = atoi(myargv[slot]);
} }
// [FG] init graphics (WIDESCREENDELTA) before HUD widgets
I_InitGraphics();
if (startloadgame >= 0) if (startloadgame >= 0)
{ {
char *file; char *file;
@ -2387,8 +2390,6 @@ void D_DoomMain(void)
debugfile = fopen(filename,"w"); debugfile = fopen(filename,"w");
} }
I_InitGraphics();
main_loop_started = true; main_loop_started = true;
D_StartGameLoop(); D_StartGameLoop();