(menu_settings.c) Build fix

This commit is contained in:
twinaphex 2014-04-16 03:36:54 +02:00
parent 8d6a7dbe1f
commit 415440948c
1 changed files with 4 additions and 8 deletions

View File

@ -774,10 +774,11 @@ int menu_set_settings(void *data, unsigned setting, unsigned action)
break; break;
} }
break; break;
#endif
case RGUI_SETTINGS_VIDEO_SOFTFILTER: case RGUI_SETTINGS_VIDEO_SOFTFILTER:
switch (action) switch (action)
{ {
#if defined(HAVE_FILTERS_BUILTIN) #ifdef HAVE_FILTERS_BUILTIN
case RGUI_ACTION_LEFT: case RGUI_ACTION_LEFT:
if (g_settings.video.filter_idx > 0) if (g_settings.video.filter_idx > 0)
g_settings.video.filter_idx--; g_settings.video.filter_idx--;
@ -790,12 +791,11 @@ int menu_set_settings(void *data, unsigned setting, unsigned action)
case RGUI_ACTION_OK: case RGUI_ACTION_OK:
#if defined(HAVE_FILTERS_BUILTIN) #if defined(HAVE_FILTERS_BUILTIN)
rarch_set_fullscreen(g_settings.video.fullscreen); rarch_set_fullscreen(g_settings.video.fullscreen);
rgui->need_refresh = true; #elif defined(HAVE_DYLIB)
#if defined(HAVE_DYLIB)
file_list_push(rgui->menu_stack, g_settings.video.filter_dir, setting, rgui->selection_ptr); file_list_push(rgui->menu_stack, g_settings.video.filter_dir, setting, rgui->selection_ptr);
menu_clear_navigation(rgui); menu_clear_navigation(rgui);
rgui->need_refresh = true;
#endif #endif
rgui->need_refresh = true;
break; break;
case RGUI_ACTION_START: case RGUI_ACTION_START:
#if defined(HAVE_FILTERS_BUILTIN) #if defined(HAVE_FILTERS_BUILTIN)
@ -805,9 +805,6 @@ int menu_set_settings(void *data, unsigned setting, unsigned action)
#endif #endif
rarch_set_fullscreen(g_settings.video.fullscreen); rarch_set_fullscreen(g_settings.video.fullscreen);
break; break;
default:
break;
#endif
} }
break; break;
@ -880,7 +877,6 @@ int menu_set_settings(void *data, unsigned setting, unsigned action)
g_settings.input.overlay_scale); g_settings.input.overlay_scale);
break; break;
} }
#endif
// controllers // controllers
case RGUI_SETTINGS_BIND_PLAYER: case RGUI_SETTINGS_BIND_PLAYER:
if (action == RGUI_ACTION_START) if (action == RGUI_ACTION_START)