early_init() was being called twice on Windows GUI

This commit is contained in:
nhmall
2024-11-13 13:57:18 -05:00
parent fa9210aa65
commit 52a9af7278
2 changed files with 4 additions and 2 deletions

View File

@@ -179,7 +179,9 @@ MAIN(int argc, char *argv[])
safe_routines();
#endif /* WIN32CON */
early_init(argc, argv);
#ifndef MSWIN_GRAPHICS
early_init(argc, argv); /* already in WinMain for MSWIN_GRAPHICS */
#endif
/* setting iflags.colorcount has to be after early_init()
* because it zeros out all of iflags */
hwnd = GetDesktopWindow();