mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +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,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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue