1
0
Fork 0
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:
Nicolas Pennequin 2007-11-18 15:32:45 +00:00
parent 4acae4da03
commit 720cfe3954
4 changed files with 11 additions and 37 deletions

View file

@ -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;
}