1
0
Fork 0
forked from len0rd/rockbox

wps-display() now tries to inform the user if the LCD is too old for full line progress bar on the Player

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3456 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2003-03-17 00:57:39 +00:00
parent 73b427a743
commit ed2312eec6

View file

@ -27,6 +27,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "lcd.h" #include "lcd.h"
#include "hwcompat.h"
#include "font.h" #include "font.h"
#include "mpeg.h" #include "mpeg.h"
#include "id3.h" #include "id3.h"
@ -394,11 +395,17 @@ static char* get_tag(struct mp3entry* id3,
#endif #endif
case 'f': /* full-line progress bar */ case 'f': /* full-line progress bar */
#ifdef HAVE_LCD_CHARCELLS #ifdef HAVE_LCD_CHARCELLS
*flags |= WPS_REFRESH_PLAYER_PROGRESS; if(has_new_lcd()) {
*flags |= WPS_REFRESH_DYNAMIC; *flags |= WPS_REFRESH_PLAYER_PROGRESS;
full_line_progressbar=1; *flags |= WPS_REFRESH_DYNAMIC;
/* we need 11 characters (full line) for progress-bar */ full_line_progressbar=1;
snprintf(buf, buf_size, " "); /* we need 11 characters (full line) for
progress-bar */
snprintf(buf, buf_size, " ");
} else {
/* Tell the user if we have an OldPlayer */
snprintf(buf, buf_size, " <Old LCD> ");
}
return buf; return buf;
#endif #endif
case 'p': /* Playlist Position */ case 'p': /* Playlist Position */