- initialized view width and height explicitly

It was just a black screen and no menu on startup otherwise
This commit is contained in:
alexey.lysiuk 2018-06-17 16:08:41 +03:00 committed by Christoph Oelckers
parent 5cf3dbfd5b
commit 33753955ac

View file

@ -711,9 +711,18 @@ void D_Display ()
} }
// change the view size if needed // change the view size if needed
if (setsizeneeded && StatusBar != NULL) if (setsizeneeded)
{ {
R_ExecuteSetViewSize (r_viewpoint, r_viewwindow); if (StatusBar == nullptr)
{
viewwidth = SCREENWIDTH;
viewheight = SCREENHEIGHT;
setsizeneeded = false;
}
else
{
R_ExecuteSetViewSize (r_viewpoint, r_viewwindow);
}
} }
setmodeneeded = false; setmodeneeded = false;