mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
conditional viewports are allowed to share labels.. so make sure they are all toggled with %xd<label>
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22417 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
caf2011311
commit
2492e258fa
1 changed files with 13 additions and 5 deletions
|
|
@ -605,12 +605,20 @@ static bool get_line(struct gui_wps *gwps,
|
|||
{
|
||||
char label = data->tokens[i].value.i;
|
||||
char temp = VP_DRAW_HIDEABLE;
|
||||
struct skin_viewport *vp = find_viewport(label, data);
|
||||
if (vp)
|
||||
/* viewports are allowed to share id's so find and enable
|
||||
* all of them */
|
||||
struct skin_token_list *list = data->viewports;
|
||||
while (list)
|
||||
{
|
||||
if (vp->hidden_flags&VP_DRAW_WASHIDDEN)
|
||||
temp |= VP_DRAW_WASHIDDEN;
|
||||
vp->hidden_flags = temp;
|
||||
struct skin_viewport *vp =
|
||||
(struct skin_viewport *)list->token->value.data;
|
||||
if (vp->label == label)
|
||||
{
|
||||
if (vp->hidden_flags&VP_DRAW_WASHIDDEN)
|
||||
temp |= VP_DRAW_WASHIDDEN;
|
||||
vp->hidden_flags = temp;
|
||||
}
|
||||
list = list->next;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue