From ed2312eec6000c292d97dc0d5ebcba05dcc13355 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 17 Mar 2003 00:57:39 +0000 Subject: 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 --- apps/wps-display.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'apps') 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 #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, " "); + } return buf; #endif case 'p': /* Playlist Position */ -- cgit v1.2.3