summaryrefslogtreecommitdiff
path: root/apps/gui/icon.c
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2007-04-18 17:49:32 +0000
committerMagnus Holmgren <magnushol@gmail.com>2007-04-18 17:49:32 +0000
commit392a4ef49b67cfd557fe2db77bf772059a82036c (patch)
tree344c9ce1dd30ac7d2bd00369873ab1bd8f9e00dc /apps/gui/icon.c
parent36a2e3087295385d15797f83120222ff71dc32bf (diff)
Fix logf builds on devices that support remotes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13202 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/icon.c')
-rw-r--r--apps/gui/icon.c16
1 files 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 <default_icons.h>
-#ifdef HAVE_REMOTE_LCD
+#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1)
#include <remote_default_icons.h>
#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);