GUI: report why does window creation fail
This commit is contained in:
parent
066769379b
commit
1e5d7a623a
|
@ -5650,7 +5650,7 @@ bool FurnaceGUI::init() {
|
|||
|
||||
sdlWin=SDL_CreateWindow("Furnace",SDL_WINDOWPOS_CENTERED,SDL_WINDOWPOS_CENTERED,scrW*dpiScale,scrH*dpiScale,SDL_WINDOW_RESIZABLE|SDL_WINDOW_ALLOW_HIGHDPI);
|
||||
if (sdlWin==NULL) {
|
||||
logE("could not open window!\n");
|
||||
logE("could not open window! %s\n",SDL_GetError());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue