1
0
Fork 0
forked from len0rd/rockbox

fix the first subline not displaying properly

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22668 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2009-09-09 15:42:20 +00:00
parent bb059ab78c
commit d2645566f7

View file

@ -702,11 +702,17 @@ static bool update_curr_subline(struct gui_wps *gwps, struct skin_line *line)
/* shortcut this whole thing if we need to reset the line completly */
if (line->curr_subline == NULL)
{
int next_refresh = current_tick;
line->subline_expire_time = current_tick;
line->curr_subline = &line->sublines;
if (!line->curr_subline->next)
next_refresh += 100*HZ;
line->subline_expire_time = next_refresh;
{
line->subline_expire_time += 100*HZ;
}
else
{
get_subline_timeout(gwps, line->curr_subline);
line->subline_expire_time += TIMEOUT_UNIT*line->curr_subline->time_mult;
}
return true;
}
/* if time to advance to next sub-line */