summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-01-27 13:29:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-01-27 13:29:41 +0000
commit39d2d8bd687f0d280d9df57974f028207624f5e1 (patch)
treec261859776f29ce715244502efde12e43a9d6455 /apps/plugins
parentd319116be43db7ed638e5941674e06859fc69aea (diff)
downloadrockbox-39d2d8bd687f0d280d9df57974f028207624f5e1.zip
rockbox-39d2d8bd687f0d280d9df57974f028207624f5e1.tar.gz
rockbox-39d2d8bd687f0d280d9df57974f028207624f5e1.tar.bz2
rockbox-39d2d8bd687f0d280d9df57974f028207624f5e1.tar.xz
1 - don't assume 160x128 means iriver h1x0 display, added check for depth
2 - disabled building for 160x128 16bit since there's no code path for it git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8466 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/jewels.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/jewels.c b/apps/plugins/jewels.c
index 265149f..bead953 100644
--- a/apps/plugins/jewels.c
+++ b/apps/plugins/jewels.c
@@ -22,6 +22,7 @@
#include "plugin.h"
#ifdef HAVE_LCD_BITMAP
+#if (LCD_DEPTH != 16) || (LCD_WIDTH != 160)
PLUGIN_HEADER
@@ -1426,7 +1427,7 @@ static unsigned short jewel[8][256] = {
};
/* use 16x16 tiles */
-#elif (LCD_HEIGHT == 128) && (LCD_WIDTH == 160)
+#elif (LCD_HEIGHT == 128) && (LCD_WIDTH == 160) && (LCD_DEPTH == 2)
/* size of a tile */
#define TILE_WIDTH 16
#define TILE_HEIGHT 16
@@ -2521,4 +2522,6 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) {
return PLUGIN_OK;
}
-#endif
+#endif /* width 160, depth 16 bits */
+#endif /* HAVE_LCD_BITMAP */
+