From b69a9438a7fc6f749135896f626b49197fff4ac4 Mon Sep 17 00:00:00 2001 From: Kp Date: Wed, 11 Mar 2015 02:19:15 +0000 Subject: [PATCH] Fix SDL graphics menu build failure Fixes: a84a05c70132d787d14c78c92322292ec7cbba3e ("Move graphics menu to macro") --- similar/main/menu.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/similar/main/menu.cpp b/similar/main/menu.cpp index ff486274f..e733c3223 100644 --- a/similar/main/menu.cpp +++ b/similar/main/menu.cpp @@ -1304,16 +1304,14 @@ static int graphics_config_menuset(newmenu *menu,const d_event &event, const unu case EVENT_NEWMENU_CHANGED: { auto &citem = static_cast(event).citem; - if ( citem == opt_gr_texfilt + 3 #ifdef OGL - && ogl_maxanisotropy <= 1.0 -#endif - ) + if (citem == opt_filter_anisotropic && ogl_maxanisotropy <= 1.0) { nm_messagebox( TXT_ERROR, 1, TXT_OK, "Anisotropic Filtering not\nsupported by your hardware/driver."); - items[opt_gr_texfilt + 3].value = 0; - items[opt_gr_texfilt + 2].value = 1; + items[opt_filter_trilinear].value = 1; + items[opt_filter_anisotropic].value = 0; } +#endif if ( citem == opt_gr_brightness) gr_palette_set_gamma(items[citem].value); break;