diff options
author | Dave Chapman <dave@dchapman.com> | 2005-12-07 15:37:21 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-12-07 15:37:21 +0000 |
commit | ddbf4e51aaabce43dac8d85a3f78d8b9396a6c73 (patch) | |
tree | aae594c363e9362327f2d5fa5e6b4791731601ad /apps | |
parent | 8e8c1a8b8f8ed244e2f10074d6fd435c586b7c8e (diff) | |
download | rockbox-ddbf4e51aaabce43dac8d85a3f78d8b9396a6c73.tar.gz rockbox-ddbf4e51aaabce43dac8d85a3f78d8b9396a6c73.zip |
Prevent numerical settings from wrapping - patch by Stephan Wezel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8192 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/option_select.c | 2 | ||||
-rw-r--r-- | apps/gui/select.c | 1 | ||||
-rw-r--r-- | apps/settings.c | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c index 68103c77c3..d482bd24ae 100644 --- a/apps/gui/option_select.c +++ b/apps/gui/option_select.c | |||
@@ -39,7 +39,7 @@ void option_select_init_numeric(struct option_select * opt, | |||
39 | opt->extra_string=unit; | 39 | opt->extra_string=unit; |
40 | opt->formatter=formatter; | 40 | opt->formatter=formatter; |
41 | opt->items=NULL; | 41 | opt->items=NULL; |
42 | opt->limit_loop=false; | 42 | opt->limit_loop=true; |
43 | } | 43 | } |
44 | 44 | ||
45 | void option_select_init_items(struct option_select * opt, | 45 | void option_select_init_items(struct option_select * opt, |
diff --git a/apps/gui/select.c b/apps/gui/select.c index 12b3c91620..89a047890c 100644 --- a/apps/gui/select.c +++ b/apps/gui/select.c | |||
@@ -77,7 +77,6 @@ void gui_syncselect_draw(struct gui_select * select) | |||
77 | 77 | ||
78 | bool gui_syncselect_do_button(struct gui_select * select, int button) | 78 | bool gui_syncselect_do_button(struct gui_select * select, int button) |
79 | { | 79 | { |
80 | select->options.limit_loop = false; | ||
81 | switch(button) | 80 | switch(button) |
82 | { | 81 | { |
83 | case SELECT_INC | BUTTON_REPEAT : | 82 | case SELECT_INC | BUTTON_REPEAT : |
diff --git a/apps/settings.c b/apps/settings.c index 4bf098d1d1..d3441630fd 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -1585,6 +1585,7 @@ bool set_option(const char* string, void* variable, enum optiontype type, | |||
1585 | { | 1585 | { |
1586 | gui_syncstatusbar_draw(&statusbars, true); | 1586 | gui_syncstatusbar_draw(&statusbars, true); |
1587 | button = button_get_w_tmo(HZ/2); | 1587 | button = button_get_w_tmo(HZ/2); |
1588 | select.options.limit_loop = false; | ||
1588 | if(gui_syncselect_do_button(&select, button)) | 1589 | if(gui_syncselect_do_button(&select, button)) |
1589 | { | 1590 | { |
1590 | /* *variable = gui_select_get_selected(&select) */ | 1591 | /* *variable = gui_select_get_selected(&select) */ |