forked from len0rd/rockbox
Improve clearing of pictures in conditional constructs. This fixes improper clearing of pictures used in several conditionals or in nested conditionals (FS#7856).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15663 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4acae4da03
commit
720cfe3954
4 changed files with 11 additions and 37 deletions
|
|
@ -426,6 +426,7 @@ static int parse_image_display(const char *wps_bufptr,
|
|||
struct wps_token *token,
|
||||
struct wps_data *wps_data)
|
||||
{
|
||||
(void)wps_data;
|
||||
int n = get_image_id(*wps_bufptr);
|
||||
|
||||
if (n == -1)
|
||||
|
|
@ -436,10 +437,6 @@ static int parse_image_display(const char *wps_bufptr,
|
|||
|
||||
token->value.i = n;
|
||||
|
||||
/* if the image is in a conditional, remember it */
|
||||
if (level >= 0)
|
||||
wps_data->img[n].cond_index = condindex[level];
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue