mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
option_screen() now accepts a viewport
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17223 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
286d48f4ec
commit
fe9dca3d5b
9 changed files with 30 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue