From 392a4ef49b67cfd557fe2db77bf772059a82036c Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Wed, 18 Apr 2007 17:49:32 +0000 Subject: Fix logf builds on devices that support remotes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13202 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/icon.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/gui/icon.c b/apps/gui/icon.c index 82f24d893b..37eb1a715f 100644 --- a/apps/gui/icon.c +++ b/apps/gui/icon.c @@ -29,7 +29,7 @@ #include "filetypes.h" #include -#ifdef HAVE_REMOTE_LCD +#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) #include #endif @@ -47,14 +47,14 @@ so storing them as void* is ok. (stops compile warning) */ static const void * inbuilt_icons[NB_SCREENS] = { (void*)default_icons -#ifdef HAVE_REMOTE_LCD +#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) , (void*)remote_default_icons #endif }; static const int default_width[NB_SCREENS] = { BMPWIDTH_default_icons -#ifdef HAVE_REMOTE_LCD +#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) , BMPWIDTH_remote_default_icons #endif }; @@ -62,7 +62,7 @@ static const int default_width[NB_SCREENS] = { /* height of whole file */ static const int default_height[NB_SCREENS] = { BMPHEIGHT_default_icons -#ifdef HAVE_REMOTE_LCD +#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) , BMPHEIGHT_remote_default_icons #endif }; @@ -131,7 +131,7 @@ void screen_put_iconxy(struct screen * display, if (!viewer_icons_loaded[screen] || (icon * height > viewer_iconset[screen].height)) { -#ifdef HAVE_REMOTE_LCD +#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) if (screen == SCREEN_REMOTE) { screen_put_iconxy(display, xpos, ypos, Icon_Questionmark); @@ -177,7 +177,7 @@ void screen_put_cursorxy(struct screen * display, int x, int y, bool on) enum Iconset { Iconset_Mainscreen, Iconset_Mainscreen_viewers, -#ifdef HAVE_REMOTE_LCD +#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) Iconset_Remotescreen, Iconset_Remotescreen_viewers, #endif @@ -203,7 +203,7 @@ static void load_icons(const char* filename, enum Iconset iconset, bmp = &viewer_iconset[SCREEN_MAIN]; bmp->data = viewer_icon_buffer[SCREEN_MAIN]; break; -#ifdef HAVE_REMOTE_LCD +#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) case Iconset_Remotescreen: loaded_ok = &custom_icons_loaded[SCREEN_REMOTE]; bmp = &user_iconset[SCREEN_REMOTE]; @@ -249,7 +249,7 @@ void icons_init(void) load_icons(DEFAULT_VIEWER_BMP, Iconset_Mainscreen_viewers, false); } -#ifdef HAVE_REMOTE_LCD +#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) load_icons(global_settings.remote_icon_file, Iconset_Remotescreen, true); -- cgit v1.2.3