mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +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
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue