summaryrefslogtreecommitdiff
path: root/apps/wps-display.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-03-17 00:57:39 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-03-17 00:57:39 +0000
commited2312eec6000c292d97dc0d5ebcba05dcc13355 (patch)
tree463f3be2ccc6558743ded527426023308c79fc42 /apps/wps-display.c
parent73b427a7433aa7b6c69b21dde624e86b1107b549 (diff)
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
Diffstat (limited to 'apps/wps-display.c')
-rw-r--r--apps/wps-display.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c
index 9961058a3a..88a3883df0 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -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 */