summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/gui/option_select.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c
index 6092a63da6..4f446fc8de 100644
--- a/apps/gui/option_select.c
+++ b/apps/gui/option_select.c
@@ -352,7 +352,11 @@ bool option_screen(struct settings_list *setting,
352 int min = sound_min(setting_id); 352 int min = sound_min(setting_id);
353 int max = sound_max(setting_id); 353 int max = sound_max(setting_id);
354 nb_items = (max-min)/steps + 1; 354 nb_items = (max-min)/steps + 1;
355#ifndef ASCENDING_INT_SETTINGS
355 selected = (max - oldvalue) / steps; 356 selected = (max - oldvalue) / steps;
357#else
358 selected = (oldvalue - min) / steps;
359#endif
356 function = sound_get_fn(setting_id); 360 function = sound_get_fn(setting_id);
357 } 361 }
358 else 362 else
@@ -363,7 +367,11 @@ bool option_screen(struct settings_list *setting,
363 min = info->min; 367 min = info->min;
364 step = info->step; 368 step = info->step;
365 nb_items = (max-min)/step + 1; 369 nb_items = (max-min)/step + 1;
366 selected = (max - oldvalue)/step; 370#ifndef ASCENDING_INT_SETTINGS
371 selected = (max - oldvalue) / step;
372#else
373 selected = (oldvalue - min) / step;
374#endif
367 function = info->option_callback; 375 function = info->option_callback;
368 } 376 }
369 } 377 }