forked from len0rd/rockbox
Prevent numerical settings from wrapping - patch by Stephan Wezel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8192 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8e8c1a8b8f
commit
ddbf4e51aa
3 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ void option_select_init_numeric(struct option_select * opt,
|
||||||
opt->extra_string=unit;
|
opt->extra_string=unit;
|
||||||
opt->formatter=formatter;
|
opt->formatter=formatter;
|
||||||
opt->items=NULL;
|
opt->items=NULL;
|
||||||
opt->limit_loop=false;
|
opt->limit_loop=true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void option_select_init_items(struct option_select * opt,
|
void option_select_init_items(struct option_select * opt,
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,6 @@ void gui_syncselect_draw(struct gui_select * select)
|
||||||
|
|
||||||
bool gui_syncselect_do_button(struct gui_select * select, int button)
|
bool gui_syncselect_do_button(struct gui_select * select, int button)
|
||||||
{
|
{
|
||||||
select->options.limit_loop = false;
|
|
||||||
switch(button)
|
switch(button)
|
||||||
{
|
{
|
||||||
case SELECT_INC | BUTTON_REPEAT :
|
case SELECT_INC | BUTTON_REPEAT :
|
||||||
|
|
|
||||||
|
|
@ -1585,6 +1585,7 @@ bool set_option(const char* string, void* variable, enum optiontype type,
|
||||||
{
|
{
|
||||||
gui_syncstatusbar_draw(&statusbars, true);
|
gui_syncstatusbar_draw(&statusbars, true);
|
||||||
button = button_get_w_tmo(HZ/2);
|
button = button_get_w_tmo(HZ/2);
|
||||||
|
select.options.limit_loop = false;
|
||||||
if(gui_syncselect_do_button(&select, button))
|
if(gui_syncselect_do_button(&select, button))
|
||||||
{
|
{
|
||||||
/* *variable = gui_select_get_selected(&select) */
|
/* *variable = gui_select_get_selected(&select) */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue