mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- initialized view width and height explicitly
It was just a black screen and no menu on startup otherwise
This commit is contained in:
parent
5cf3dbfd5b
commit
33753955ac
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue