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:
parent
73b427a743
commit
ed2312eec6
1 changed files with 12 additions and 5 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "lcd.h"
|
||||
#include "hwcompat.h"
|
||||
#include "font.h"
|
||||
#include "mpeg.h"
|
||||
#include "id3.h"
|
||||
|
|
@ -394,11 +395,17 @@ static char* get_tag(struct mp3entry* id3,
|
|||
#endif
|
||||
case 'f': /* full-line progress bar */
|
||||
#ifdef HAVE_LCD_CHARCELLS
|
||||
*flags |= WPS_REFRESH_PLAYER_PROGRESS;
|
||||
*flags |= WPS_REFRESH_DYNAMIC;
|
||||
full_line_progressbar=1;
|
||||
/* we need 11 characters (full line) for progress-bar */
|
||||
snprintf(buf, buf_size, " ");
|
||||
if(has_new_lcd()) {
|
||||
*flags |= WPS_REFRESH_PLAYER_PROGRESS;
|
||||
*flags |= WPS_REFRESH_DYNAMIC;
|
||||
full_line_progressbar=1;
|
||||
/* 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;
|
||||
#endif
|
||||
case 'p': /* Playlist Position */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue