summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorAdam Boot <rotator@gmail.com>2005-11-28 23:24:03 +0000
committerAdam Boot <rotator@gmail.com>2005-11-28 23:24:03 +0000
commitd371141493a6863890e3867e5fef4f9c1b9d3add (patch)
tree92c15f6f2b95a9a0acbf4e461a5c20dc365169af /apps/plugins
parent10a1eac917b0764b44e8e7adfa6da9a77422871a (diff)
downloadrockbox-d371141493a6863890e3867e5fef4f9c1b9d3add.zip
rockbox-d371141493a6863890e3867e5fef4f9c1b9d3add.tar.gz
rockbox-d371141493a6863890e3867e5fef4f9c1b9d3add.tar.bz2
rockbox-d371141493a6863890e3867e5fef4f9c1b9d3add.tar.xz
Color graphics fix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8102 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/jewels.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/plugins/jewels.c b/apps/plugins/jewels.c
index 5a9d7d3..39d7732 100644
--- a/apps/plugins/jewels.c
+++ b/apps/plugins/jewels.c
@@ -26,7 +26,6 @@
/* colors */
#ifdef HAVE_LCD_COLOR
#define COLOR_BLACK LCD_RGBPACK(0,0,0)
-#define COLOR_WHITE LCD_RGBPACK(255,255,255)
#define COLOR_RED LCD_RGBPACK(255,0,0)
#define COLOR_YELLOW LCD_RGBPACK(128,128,0)
#define COLOR_GREEN LCD_RGBPACK(0,255,0)
@@ -414,11 +413,11 @@ static void bejeweled_putjewels(struct game_context* bj){
j*TILE_WIDTH,
(i-1)*TILE_HEIGHT+k-TILE_HEIGHT/8,
TILE_WIDTH, TILE_HEIGHT);
+ /* draw new position */
#ifdef HAVE_LCD_COLOR
rb->lcd_set_foreground(jewel_color
[bj->playboard[j][i].type]);
#endif
- /* draw new position */
rb->lcd_mono_bitmap(jewel[bj->playboard[j][i].type],
j*TILE_WIDTH,
(i-1)*TILE_HEIGHT+k,
@@ -428,6 +427,9 @@ static void bejeweled_putjewels(struct game_context* bj){
}
rb->lcd_update();
}
+#ifdef HAVE_LCD_COLOR
+ rb->lcd_set_foreground(COLOR_BLACK);
+#endif
/* shift jewels down */
for(j=0; j<BJ_WIDTH; j++) {
@@ -638,6 +640,9 @@ static unsigned int bejeweled_swapjewels(struct game_context* bj,
points = bejeweled_runboard(bj);
if(points == 0) {undo = true;} else {break;}
}
+#ifdef HAVE_LCD_COLOR
+ rb->lcd_set_foreground(COLOR_BLACK);
+#endif
return points;
}