diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-03-17 00:57:39 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-03-17 00:57:39 +0000 |
commit | ed2312eec6000c292d97dc0d5ebcba05dcc13355 (patch) | |
tree | 463f3be2ccc6558743ded527426023308c79fc42 /apps/wps-display.c | |
parent | 73b427a7433aa7b6c69b21dde624e86b1107b549 (diff) | |
download | rockbox-ed2312eec6000c292d97dc0d5ebcba05dcc13355.tar.gz rockbox-ed2312eec6000c292d97dc0d5ebcba05dcc13355.zip |
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.c | 17 |
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 @@ | |||
27 | #include <stdlib.h> | 27 | #include <stdlib.h> |
28 | 28 | ||
29 | #include "lcd.h" | 29 | #include "lcd.h" |
30 | #include "hwcompat.h" | ||
30 | #include "font.h" | 31 | #include "font.h" |
31 | #include "mpeg.h" | 32 | #include "mpeg.h" |
32 | #include "id3.h" | 33 | #include "id3.h" |
@@ -394,11 +395,17 @@ static char* get_tag(struct mp3entry* id3, | |||
394 | #endif | 395 | #endif |
395 | case 'f': /* full-line progress bar */ | 396 | case 'f': /* full-line progress bar */ |
396 | #ifdef HAVE_LCD_CHARCELLS | 397 | #ifdef HAVE_LCD_CHARCELLS |
397 | *flags |= WPS_REFRESH_PLAYER_PROGRESS; | 398 | if(has_new_lcd()) { |
398 | *flags |= WPS_REFRESH_DYNAMIC; | 399 | *flags |= WPS_REFRESH_PLAYER_PROGRESS; |
399 | full_line_progressbar=1; | 400 | *flags |= WPS_REFRESH_DYNAMIC; |
400 | /* we need 11 characters (full line) for progress-bar */ | 401 | full_line_progressbar=1; |
401 | snprintf(buf, buf_size, " "); | 402 | /* we need 11 characters (full line) for |
403 | progress-bar */ | ||
404 | snprintf(buf, buf_size, " "); | ||
405 | } else { | ||
406 | /* Tell the user if we have an OldPlayer */ | ||
407 | snprintf(buf, buf_size, " <Old LCD> "); | ||
408 | } | ||
402 | return buf; | 409 | return buf; |
403 | #endif | 410 | #endif |
404 | case 'p': /* Playlist Position */ | 411 | case 'p': /* Playlist Position */ |