summaryrefslogtreecommitdiff
path: root/apps/plugins/xobox.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/xobox.c')
-rw-r--r--apps/plugins/xobox.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/xobox.c b/apps/plugins/xobox.c
index 2b1321631f..e99ad246aa 100644
--- a/apps/plugins/xobox.c
+++ b/apps/plugins/xobox.c
@@ -98,10 +98,12 @@ PLUGIN_HEADER
98#define CLR_RED LCD_RGBPACK(255,0,0) /* used to imply danger */ 98#define CLR_RED LCD_RGBPACK(255,0,0) /* used to imply danger */
99#define CLR_BLUE LCD_RGBPACK(0,0,128) /* used for menu selection */ 99#define CLR_BLUE LCD_RGBPACK(0,0,128) /* used for menu selection */
100#define CLR_CYAN LCD_RGBPACK(0,128,128) /* used for frame and filling */ 100#define CLR_CYAN LCD_RGBPACK(0,128,128) /* used for frame and filling */
101#define PLR_COL LCD_WHITE /* color used for the player */
101#else 102#else
102#define CLR_RED LCD_DARKGRAY /* used to imply danger */ 103#define CLR_RED LCD_DARKGRAY /* used to imply danger */
103#define CLR_BLUE LCD_LIGHTGRAY /* used for menu selection */ 104#define CLR_BLUE LCD_BLACK /* used for menu selection */
104#define CLR_CYAN LCD_LIGHTGRAY /* used for frame and filling */ 105#define CLR_CYAN LCD_LIGHTGRAY /* used for frame and filling */
106#define PLR_COL LCD_BLACK /* color used for the player */
105#endif 107#endif
106 108
107#define EMPTIED LCD_BLACK /* empty spot */ 109#define EMPTIED LCD_BLACK /* empty spot */
@@ -326,11 +328,12 @@ static void refresh_board (void)
326 rb->lcd_putsxy (BOARD_X + CUBE_SIZE * BOARD_W - 60, 328 rb->lcd_putsxy (BOARD_X + CUBE_SIZE * BOARD_W - 60,
327 BOARD_Y + CUBE_SIZE * BOARD_H - 8, str); 329 BOARD_Y + CUBE_SIZE * BOARD_H - 8, str);
328 330
329 rb->lcd_set_foreground (LCD_WHITE); 331 rb->lcd_set_foreground (PLR_COL);
330 rb->lcd_set_background (board[player.j][player.i]); 332 rb->lcd_set_background (board[player.j][player.i]);
331 rb->lcd_mono_bitmap (pics[PIC_PLAYER], player.i * CUBE_SIZE + BOARD_X, 333 rb->lcd_mono_bitmap (pics[PIC_PLAYER], player.i * CUBE_SIZE + BOARD_X,
332 player.j * CUBE_SIZE + BOARD_Y, CUBE_SIZE, CUBE_SIZE); 334 player.j * CUBE_SIZE + BOARD_Y, CUBE_SIZE, CUBE_SIZE);
333 rb->lcd_set_background (EMPTIED); 335 rb->lcd_set_background (EMPTIED);
336 rb->lcd_set_foreground (LCD_WHITE);
334 for (j = 0; j < player.level + STARTING_QIXES; j++) 337 for (j = 0; j < player.level + STARTING_QIXES; j++)
335 rb->lcd_mono_bitmap (pics[PIC_QIX], qixes[j].x + BOARD_X, 338 rb->lcd_mono_bitmap (pics[PIC_QIX], qixes[j].x + BOARD_X,
336 qixes[j].y + BOARD_Y, CUBE_SIZE, CUBE_SIZE); 339 qixes[j].y + BOARD_Y, CUBE_SIZE, CUBE_SIZE);