summaryrefslogtreecommitdiff
path: root/apps/gui/option_select.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/option_select.c')
-rw-r--r--apps/gui/option_select.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c
index b8b1cc505b..0414b70801 100644
--- a/apps/gui/option_select.c
+++ b/apps/gui/option_select.c
@@ -336,7 +336,14 @@ bool option_screen(struct settings_list *setting,
336 int min = sound_min(setting_id); 336 int min = sound_min(setting_id);
337 int max = sound_max(setting_id); 337 int max = sound_max(setting_id);
338 nb_items = (max-min)/steps + 1; 338 nb_items = (max-min)/steps + 1;
339 selected = (max-oldvalue)/steps; 339 if (setting->flags&F_FLIPLIST)
340 {
341 selected = (oldvalue - min) / steps;
342 }
343 else
344 {
345 selected = (max - oldvalue) / steps;
346 }
340 function = sound_get_fn(setting_id); 347 function = sound_get_fn(setting_id);
341 } 348 }
342 else 349 else