diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-10-15 05:35:20 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-10-15 05:35:20 +0000 |
commit | 58777c350a9d0539a5a5480fc4cdeef5a4353ea3 (patch) | |
tree | 0d4187ec0481fe6e73e76f95a2f9789e981b5eb7 /apps/gui/option_select.c | |
parent | 1515ff852224c822a6d3db8c458eab2c9037704f (diff) | |
download | rockbox-58777c350a9d0539a5a5480fc4cdeef5a4353ea3.tar.gz rockbox-58777c350a9d0539a5a5480fc4cdeef5a4353ea3.zip |
Fix FS#7952 - flip list settings didnt work properly
Accept FS#7956 - flip some sound settings on wheel targets so clockwise increases
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15113 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/option_select.c')
-rw-r--r-- | apps/gui/option_select.c | 9 |
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 |