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
+3 -1
View File
@@ -179,7 +179,9 @@ MAIN(int argc, char *argv[])
safe_routines(); safe_routines();
#endif /* WIN32CON */ #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() /* setting iflags.colorcount has to be after early_init()
* because it zeros out all of iflags */ * because it zeros out all of iflags */
hwnd = GetDesktopWindow(); hwnd = GetDesktopWindow();
+1 -1
View File
@@ -131,7 +131,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
windowprocs.win_wait_synch = mswin_wait_synch; windowprocs.win_wait_synch = mswin_wait_synch;
win10_init(); win10_init();
/* early_init(0, NULL); */ /* Change as needed to support CRASHREPORT */ early_init(0, NULL); /* Change as needed to support CRASHREPORT */
/* init application structure */ /* init application structure */
_nethack_app.hApp = hInstance; _nethack_app.hApp = hInstance;