summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorKevin Ferrare <kevin@rockbox.org>2005-11-06 03:18:34 +0000
committerKevin Ferrare <kevin@rockbox.org>2005-11-06 03:18:34 +0000
commit9b5264d37faf0588f996a1716c41a6e51f4d16ea (patch)
tree03d6f571683fdaa2b2877c4df51fb75df9d76fae /apps/gui
parentec8f328d89f7db22f9894148e2c0431e44ebf191 (diff)
downloadrockbox-9b5264d37faf0588f996a1716c41a6e51f4d16ea.zip
rockbox-9b5264d37faf0588f996a1716c41a6e51f4d16ea.tar.gz
rockbox-9b5264d37faf0588f996a1716c41a6e51f4d16ea.tar.bz2
rockbox-9b5264d37faf0588f996a1716c41a6e51f4d16ea.tar.xz
Corrected the bug with boolean settings (the inverted screen that couldn't be turned back to normal) added full multi-screen sound setting support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7761 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/select.c2
-rw-r--r--apps/gui/select.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/apps/gui/select.c b/apps/gui/select.c
index 8323783..58747fb 100644
--- a/apps/gui/select.c
+++ b/apps/gui/select.c
@@ -44,6 +44,7 @@ void gui_select_init_numeric(struct gui_select * select,
select->min_value=min_value;
select->max_value=max_value+1;
select->option=init_value;
+ select->nb_decimals=0;
select->step=step;
select->extra_string=unit;
select->formatter=formatter;
@@ -62,6 +63,7 @@ void gui_select_init_items(struct gui_select * select,
select->min_value=0;
select->max_value=nb_items;
select->option=selected;
+ select->nb_decimals=0;
select->step=1;
select->formatter=NULL;
select->items=items;
diff --git a/apps/gui/select.h b/apps/gui/select.h
index e79dcd3..87ecb1c 100644
--- a/apps/gui/select.h
+++ b/apps/gui/select.h
@@ -80,6 +80,7 @@ struct gui_select
int max_value;
int step;
int option;
+ int nb_decimals;
const char * extra_string;
/* In the case the option is a number */
void (*formatter)(char* dest,