Fixed WPS-screen for player.

Debugging to be done by Mats Lidell.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3149 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Kjell Ericson 2003-01-22 12:48:12 +00:00
parent 7f9d71363a
commit fa22295598

View file

@ -662,22 +662,16 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo
format_display(buf, sizeof(buf), id3, format_lines[i], &flags);
line_type[i] = flags;
#ifdef HAVE_LCD_BITMAP
/* progress */
if (flags & refresh_mode & WPS_REFRESH_PLAYER_PROGRESS) {
#ifdef HAVE_LCD_CHARCELLS
draw_player_progress(id3, ff_rewind_count);
#else
int offset = global_settings.statusbar ? STATUSBAR_HEIGHT : 0;
slidebar(0, i*h + offset + 1, LCD_WIDTH, 6,
(id3->elapsed + ff_rewind_count) * 100 / id3->length,
Grow_Right);
#endif
update_line = true;
} else
#ifdef HAVE_LCD_BITMAP
} else if (flags & refresh_mode & WPS_REFRESH_PEAK_METER) {
/* peak meter */
if (flags & refresh_mode & WPS_REFRESH_PEAK_METER) {
int peak_meter_y;
int offset = global_settings.statusbar ? STATUSBAR_HEIGHT : 0;
@ -695,17 +689,25 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo
peak_meter_draw(0, peak_meter_y, LCD_WIDTH,
MIN(h, LCD_HEIGHT - peak_meter_y));
}
} else
#endif
} else if (flags & WPS_REFRESH_SCROLL) {
/* scroll line */
if (flags & WPS_REFRESH_SCROLL)
{
if (refresh_mode & WPS_REFRESH_SCROLL)
{
if (refresh_mode & WPS_REFRESH_SCROLL) {
lcd_puts_scroll(0, i, buf);
}
}
#else
/* progress */
if (flags & refresh_mode & WPS_REFRESH_PLAYER_PROGRESS) {
draw_player_progress(id3, ff_rewind_count);
}
if (flags & WPS_REFRESH_SCROLL) {
/* scroll line */
if (refresh_mode & WPS_REFRESH_SCROLL) {
lcd_puts_scroll(0, i, buf);
}
flags=0;
}
#endif
/* dynamic / static line */
if ((flags & refresh_mode & WPS_REFRESH_DYNAMIC) ||