mirror of
https://github.com/ZDoom/Raze.git
synced 2025-04-25 01:01:02 +00:00
menus.cpp: disable palette emulation menu options when in Polymost and r_useindexedcolortextures is 1
git-svn-id: https://svn.eduke32.com/eduke32@6787 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b61ade4b66
commit
337a07ab75
1 changed files with 6 additions and 1 deletions
|
@ -1945,8 +1945,11 @@ static void Menu_Pre(MenuID_t cm)
|
||||||
if (getrendermode() != REND_CLASSIC)
|
if (getrendermode() != REND_CLASSIC)
|
||||||
{
|
{
|
||||||
//POGOTODO: allow setting anisotropy again while r_useindexedcolortextures is set when support is added down the line
|
//POGOTODO: allow setting anisotropy again while r_useindexedcolortextures is set when support is added down the line
|
||||||
// don't allow setting anisotropy while in POLYMOST and r_useindexedcolortextures is enabled
|
// don't allow setting anisotropy or changing palette emulation while in POLYMOST and r_useindexedcolortextures is enabled
|
||||||
MenuEntry_DisableOnCondition(&ME_DISPLAYSETUP_ANISOTROPY, getrendermode() == REND_POLYMOST && r_useindexedcolortextures);
|
MenuEntry_DisableOnCondition(&ME_DISPLAYSETUP_ANISOTROPY, getrendermode() == REND_POLYMOST && r_useindexedcolortextures);
|
||||||
|
#ifdef EDUKE32_SIMPLE_MENU
|
||||||
|
MenuEntry_DisableOnCondition(&ME_DISPLAYSETUP_PALETTEEMULATION, getrendermode() == REND_POLYMOST && r_useindexedcolortextures);
|
||||||
|
#endif
|
||||||
|
|
||||||
for (i = (int32_t) ARRAY_SIZE(MEOSV_DISPLAYSETUP_ANISOTROPY) - 1; i >= 0; --i)
|
for (i = (int32_t) ARRAY_SIZE(MEOSV_DISPLAYSETUP_ANISOTROPY) - 1; i >= 0; --i)
|
||||||
{
|
{
|
||||||
|
@ -1970,6 +1973,8 @@ static void Menu_Pre(MenuID_t cm)
|
||||||
MenuEntry_DisableOnCondition(&ME_RENDERERSETUP_DETAILTEX, !usehightile);
|
MenuEntry_DisableOnCondition(&ME_RENDERERSETUP_DETAILTEX, !usehightile);
|
||||||
MenuEntry_DisableOnCondition(&ME_RENDERERSETUP_GLOWTEX, !usehightile);
|
MenuEntry_DisableOnCondition(&ME_RENDERERSETUP_GLOWTEX, !usehightile);
|
||||||
# endif
|
# endif
|
||||||
|
// don't allow changing palette emulation while in POLYMOST and r_useindexedcolortextures is enabled
|
||||||
|
MenuEntry_DisableOnCondition(&ME_RENDERERSETUP_PALETTEEMULATION, getrendermode() == REND_POLYMOST && r_useindexedcolortextures);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue