From fcbd0737bbf2ad22f2ee0a6d8acd0b11649d2fe5 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sun, 28 Dec 2014 21:35:56 +0000 Subject: [PATCH] Menus: Fix the Screen Size slider so that it works properly after the screen size has been modified in-game with [-]/[+]. git-svn-id: https://svn.eduke32.com/eduke32@4869 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/menus.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/polymer/eduke32/source/menus.c b/polymer/eduke32/source/menus.c index 2d9d13792..39f740775 100644 --- a/polymer/eduke32/source/menus.c +++ b/polymer/eduke32/source/menus.c @@ -1446,6 +1446,9 @@ static void M_PreMenu(MenuID_t cm) MenuMenu_ChangeEntryList(M_DISPLAYSETUP, MEL_DISPLAYSETUP_GL); if (getrendermode() != REND_CLASSIC) + { + vpsize = ud.screen_size + 4*(ud.screen_size>=8 && ud.statusbarmode==0); + for (i = (int32_t) ARRAY_SIZE(MEOSV_DISPLAYSETUP_ANISOTROPY) - 1; i >= 0; --i) { if (MEOSV_DISPLAYSETUP_ANISOTROPY[i] <= glinfo.maxanisotropy) @@ -1454,6 +1457,7 @@ static void M_PreMenu(MenuID_t cm) break; } } + } break; case MENU_RENDERERSETUP: