From e75cbdd2a84904e9294091c0ae599762b067077a Mon Sep 17 00:00:00 2001 From: Kevin Ferrare Date: Sat, 29 Oct 2005 02:33:19 +0000 Subject: Some changes to the remote code : some one lines function turned into macros ; changed pre-increment to post-increment since it's clearer that way ; added a data pointer to the list callback (global variables are baaaad) ; some more documentation of the API and minor cleanups git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7681 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/statusbar.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'apps/gui/statusbar.c') diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c index 0e7210218e..0f24208d33 100644 --- a/apps/gui/statusbar.c +++ b/apps/gui/statusbar.c @@ -40,9 +40,7 @@ /* FIXME: should be removed from icon.h to avoid redefinition, but still needed for compatibility with old system */ -#define STATUSBAR_X_POS 0 -#define STATUSBAR_Y_POS 0 /* MUST be a multiple of 8 */ -#define STATUSBAR_HEIGHT 8 + #define STATUSBAR_BATTERY_X_POS 0 #define STATUSBAR_BATTERY_WIDTH 18 #define STATUSBAR_PLUG_X_POS STATUSBAR_X_POS + \ @@ -115,7 +113,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw) struct tm* tm; /* For Time */ #endif -#ifndef HAVE_LCD_BITMAP +#ifdef HAVE_LCD_CHARCELLS (void)force_redraw; /* players always "redraw" */ #endif @@ -259,7 +257,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw) } -#ifndef HAVE_LCD_BITMAP +#ifdef HAVE_LCD_CHARCELLS if (bar->info.battlevel > -1) display->icon(ICON_BATTERY, battery_state); display->icon(ICON_BATTERY_1, bar->info.battlevel > 25); -- cgit