From 33753955accc69b679cb76d1c1787a557cf3a39f Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 17 Jun 2018 16:08:41 +0300 Subject: [PATCH] - initialized view width and height explicitly It was just a black screen and no menu on startup otherwise --- src/d_main.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index dfc4e64e93..0ec3129c66 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -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;