From 58777c350a9d0539a5a5480fc4cdeef5a4353ea3 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 15 Oct 2007 05:35:20 +0000 Subject: 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 --- apps/gui/option_select.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'apps/gui/option_select.c') 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, int min = sound_min(setting_id); int max = sound_max(setting_id); nb_items = (max-min)/steps + 1; - selected = (max-oldvalue)/steps; + if (setting->flags&F_FLIPLIST) + { + selected = (oldvalue - min) / steps; + } + else + { + selected = (max - oldvalue) / steps; + } function = sound_get_fn(setting_id); } else -- cgit v1.2.3