From d308a1223b1c6e2bec94d8ba214b96f48fc54b13 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 8 Apr 2019 22:04:47 +0200 Subject: [PATCH] - fixed the calculations which decide whether to use an options menu for skills and episodes. --- src/menu/menudef.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/menu/menudef.cpp b/src/menu/menudef.cpp index 0ae8cb99d..9932b9d1d 100644 --- a/src/menu/menudef.cpp +++ b/src/menu/menudef.cpp @@ -1120,9 +1120,9 @@ void M_StartupEpisodeMenu(FGameStartup *gs) // center the menu on the screen if the top space is larger than the bottom space int totalheight = posy + AllEpisodes.Size() * ld->mLinespacing - topy; - if (totalheight < 190 || AllEpisodes.Size() == 1) + if (totalheight < CleanHeight-10 || AllEpisodes.Size() == 1) { - int newtop = (200 - totalheight + topy) / 2; + int newtop = (CleanHeight - totalheight + topy) / 2; int topdelta = newtop - topy; if (topdelta < 0) { @@ -1631,9 +1631,9 @@ void M_StartupSkillMenu(FGameStartup *gs) // center the menu on the screen if the top space is larger than the bottom space int totalheight = posy + MenuSkills.Size() * ld->mLinespacing - topy; - if (totalheight < 190 || MenuSkills.Size() == 1) + if (totalheight < CleanHeight-10 || MenuSkills.Size() == 1) { - int newtop = (200 - totalheight + topy) / 2; + int newtop = (CleanHeight - totalheight + topy) / 2; int topdelta = newtop - topy; if (topdelta < 0) {