diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2009-09-09 15:42:20 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2009-09-09 15:42:20 +0000 |
commit | d2645566f74dfdccce8f30489bd8494244629aef (patch) | |
tree | ea947f163ec5c841d2b6afc9038419849484196c /apps/gui/skin_engine/skin_display.c | |
parent | bb059ab78c607aa89f908524ff3df0eadb75730e (diff) | |
download | rockbox-d2645566f74dfdccce8f30489bd8494244629aef.tar.gz rockbox-d2645566f74dfdccce8f30489bd8494244629aef.zip |
fix the first subline not displaying properly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22668 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_display.c')
-rw-r--r-- | apps/gui/skin_engine/skin_display.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c index 4a87b69ce4..14e0bce0a9 100644 --- a/apps/gui/skin_engine/skin_display.c +++ b/apps/gui/skin_engine/skin_display.c | |||
@@ -702,11 +702,17 @@ static bool update_curr_subline(struct gui_wps *gwps, struct skin_line *line) | |||
702 | /* shortcut this whole thing if we need to reset the line completly */ | 702 | /* shortcut this whole thing if we need to reset the line completly */ |
703 | if (line->curr_subline == NULL) | 703 | if (line->curr_subline == NULL) |
704 | { | 704 | { |
705 | int next_refresh = current_tick; | 705 | line->subline_expire_time = current_tick; |
706 | line->curr_subline = &line->sublines; | 706 | line->curr_subline = &line->sublines; |
707 | if (!line->curr_subline->next) | 707 | if (!line->curr_subline->next) |
708 | next_refresh += 100*HZ; | 708 | { |
709 | line->subline_expire_time = next_refresh; | 709 | line->subline_expire_time += 100*HZ; |
710 | } | ||
711 | else | ||
712 | { | ||
713 | get_subline_timeout(gwps, line->curr_subline); | ||
714 | line->subline_expire_time += TIMEOUT_UNIT*line->curr_subline->time_mult; | ||
715 | } | ||
710 | return true; | 716 | return true; |
711 | } | 717 | } |
712 | /* if time to advance to next sub-line */ | 718 | /* if time to advance to next sub-line */ |