diff options
-rw-r--r-- | apps/gui/option_select.c | 6 | ||||
-rw-r--r-- | apps/gui/option_select.h | 7 | ||||
-rw-r--r-- | apps/gui/quickscreen.c | 8 |
3 files changed, 14 insertions, 7 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c index 1dab41ee22..5d1e3d778e 100644 --- a/apps/gui/option_select.c +++ b/apps/gui/option_select.c | |||
@@ -35,12 +35,6 @@ | |||
35 | #include "menu.h" | 35 | #include "menu.h" |
36 | #include "quickscreen.h" | 36 | #include "quickscreen.h" |
37 | 37 | ||
38 | #if defined (HAVE_SCROLLWHEEL) || \ | ||
39 | (CONFIG_KEYPAD == PLAYER_PAD) | ||
40 | /* Define this if your target makes sense to have | ||
41 | smaller values at the top of the list increasing down the list */ | ||
42 | #define ASCENDING_INT_SETTINGS | ||
43 | #endif | ||
44 | 38 | ||
45 | static int selection_to_val(const struct settings_list *setting, int selection); | 39 | static int selection_to_val(const struct settings_list *setting, int selection); |
46 | int option_value_as_int(const struct settings_list *setting) | 40 | int option_value_as_int(const struct settings_list *setting) |
diff --git a/apps/gui/option_select.h b/apps/gui/option_select.h index 04493e93eb..0a7600ce80 100644 --- a/apps/gui/option_select.h +++ b/apps/gui/option_select.h | |||
@@ -25,6 +25,13 @@ | |||
25 | #include "screen_access.h" | 25 | #include "screen_access.h" |
26 | #include "settings.h" | 26 | #include "settings.h" |
27 | 27 | ||
28 | #if defined (HAVE_SCROLLWHEEL) || \ | ||
29 | (CONFIG_KEYPAD == PLAYER_PAD) | ||
30 | /* Define this if your target makes sense to have | ||
31 | smaller values at the top of the list increasing down the list */ | ||
32 | #define ASCENDING_INT_SETTINGS | ||
33 | #endif | ||
34 | |||
28 | bool option_screen(const struct settings_list *setting, | 35 | bool option_screen(const struct settings_list *setting, |
29 | struct viewport parent[NB_SCREENS], | 36 | struct viewport parent[NB_SCREENS], |
30 | bool use_temp_var, unsigned char* option_title); | 37 | bool use_temp_var, unsigned char* option_title); |
diff --git a/apps/gui/quickscreen.c b/apps/gui/quickscreen.c index d092f0b04a..1482310385 100644 --- a/apps/gui/quickscreen.c +++ b/apps/gui/quickscreen.c | |||
@@ -275,7 +275,13 @@ static bool gui_quickscreen_do_button(struct gui_quickscreen * qs, int button) | |||
275 | } | 275 | } |
276 | if (qs->items[item] == NULL) | 276 | if (qs->items[item] == NULL) |
277 | return false; | 277 | return false; |
278 | 278 | #ifdef ASCENDING_INT_SETTINGS | |
279 | if (((qs->items[item]->flags & F_INT_SETTING) == F_INT_SETTING) && | ||
280 | ( button == ACTION_QS_DOWN || button == ACTION_QS_TOP)) | ||
281 | { | ||
282 | invert = !invert; | ||
283 | } | ||
284 | #endif | ||
279 | option_select_next_val(qs->items[item], invert, true); | 285 | option_select_next_val(qs->items[item], invert, true); |
280 | talk_qs_option(qs->items[item], false); | 286 | talk_qs_option(qs->items[item], false); |
281 | return true; | 287 | return true; |