diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-04-23 11:07:40 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-04-23 11:07:40 +0000 |
commit | fe9dca3d5b6156b85f1085ecc11ba8e3a1dcd2d7 (patch) | |
tree | 8e85e29dad56030c399377bcb429db6d935b544c /apps/gui | |
parent | 286d48f4ec99ec3f63687f623053e6dd01445863 (diff) |
option_screen() now accepts a viewport
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17223 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/option_select.c | 3 | ||||
-rw-r--r-- | apps/gui/option_select.h | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c index e26bab3b82..c6136ebf17 100644 --- a/apps/gui/option_select.c +++ b/apps/gui/option_select.c @@ -426,6 +426,7 @@ static void val_to_selection(struct settings_list *setting, int oldvalue, } bool option_screen(struct settings_list *setting, + struct viewport parent[NB_SCREENS], bool use_temp_var, unsigned char* option_title) { int action; @@ -451,7 +452,7 @@ bool option_screen(struct settings_list *setting, } else return false; /* only int/bools can go here */ gui_synclist_init(&lists, value_setting_get_name_cb, - (void*)setting, false, 1, NULL); + (void*)setting, false, 1, parent); if (setting->lang_id == -1) title = (char*)setting->cfg_vals; else diff --git a/apps/gui/option_select.h b/apps/gui/option_select.h index fa2f3660b6..bb609346a3 100644 --- a/apps/gui/option_select.h +++ b/apps/gui/option_select.h @@ -19,9 +19,12 @@ #ifndef _GUI_OPTION_SELECT_H_ #define _GUI_OPTION_SELECT_H_ +#include "config.h" +#include "screen_access.h" #include "settings.h" bool option_screen(struct settings_list *setting, + struct viewport parent[NB_SCREENS], bool use_temp_var, unsigned char* option_title); struct option_select |