- 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,10 +711,19 @@ void D_Display ()
} }
// change the view size if needed // change the view size if needed
if (setsizeneeded && StatusBar != NULL) if (setsizeneeded)
{
if (StatusBar == nullptr)
{
viewwidth = SCREENWIDTH;
viewheight = SCREENHEIGHT;
setsizeneeded = false;
}
else
{ {
R_ExecuteSetViewSize (r_viewpoint, r_viewwindow); R_ExecuteSetViewSize (r_viewpoint, r_viewwindow);
} }
}
setmodeneeded = false; setmodeneeded = false;
// [RH] Allow temporarily disabling wipes // [RH] Allow temporarily disabling wipes