From 6a53c33a8b958596ba86653e3c15ff52c004c764 Mon Sep 17 00:00:00 2001 From: Kevin Ferrare Date: Wed, 16 Nov 2005 02:55:26 +0000 Subject: fixed the warning and changed playlist max entries in buffer to 200 as it was before git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7902 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/icon.h | 2 +- apps/playlist_viewer.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/gui/icon.h b/apps/gui/icon.h index a9ae058ce9..1eefc4850c 100644 --- a/apps/gui/icon.h +++ b/apps/gui/icon.h @@ -25,7 +25,7 @@ #ifdef HAVE_LCD_BITMAP typedef const unsigned char * ICON; #else - typedef unsigned short ICON; + typedef short ICON; #endif #define CURSOR_CHAR 0x92 diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 58f27409b1..36acb9b897 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c @@ -47,7 +47,7 @@ #include "splash.h" /* Maximum number of tracks we can have loaded at one time */ -#define MAX_PLAYLIST_ENTRIES 40 +#define MAX_PLAYLIST_ENTRIES 200 /* The number of items between the selected one and the end/start of * the buffer under which the buffer must reload */ @@ -598,7 +598,11 @@ void playlist_callback_icons(int selected_item, void * data, ICON * icon) #endif } else +#ifdef HAVE_LCD_BITMAP *icon=0; +#else + *icon=-1; +#endif } -- cgit v1.2.3