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
This commit is contained in:
hendricks266 2014-12-28 21:35:56 +00:00
parent aa9f767052
commit fcbd0737bb

View file

@ -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: