summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/bitmaps/native/SOURCES8
-rw-r--r--apps/plugins/bitmaps/native/pegbox_header.96x32x16.bmpbin0 -> 9270 bytes
-rw-r--r--apps/plugins/bitmaps/native/pegbox_pieces.8x8x16.bmpbin0 -> 1398 bytes
-rw-r--r--apps/plugins/bitmaps/native/star_tiles.6x6.bmpbin0 -> 654 bytes
-rw-r--r--apps/plugins/pegbox.c8
-rw-r--r--apps/plugins/rockpaint.c11
6 files changed, 26 insertions, 1 deletions
diff --git a/apps/plugins/bitmaps/native/SOURCES b/apps/plugins/bitmaps/native/SOURCES
index 65b1a3828e..8eaf623fda 100644
--- a/apps/plugins/bitmaps/native/SOURCES
+++ b/apps/plugins/bitmaps/native/SOURCES
@@ -386,7 +386,8 @@ jewels.112x64x1.bmp
386jewels.128x128x16.bmp 386jewels.128x128x16.bmp
387#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 160) 387#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 160)
388jewels.128x128x16.bmp 388jewels.128x128x16.bmp
389#elif (LCD_WIDTH == 132) && (LCD_HEIGHT == 80) 389#elif ((LCD_WIDTH == 132) && (LCD_HEIGHT == 80)) || \
390 ((LCD_WIDTH == 96) && (LCD_HEIGHT == 96))
390jewels.132x80x16.bmp 391jewels.132x80x16.bmp
391#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 96) 392#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 96)
392jewels.128x96x2.bmp 393jewels.128x96x2.bmp
@@ -453,6 +454,9 @@ pegbox_header.22x80x16.bmp
453#elif LCD_WIDTH >= 128 454#elif LCD_WIDTH >= 128
454pegbox_pieces.10x10x16.bmp 455pegbox_pieces.10x10x16.bmp
455pegbox_header.128x42x16.bmp 456pegbox_header.128x42x16.bmp
457#elif LCD_WIDTH >= 96
458pegbox_pieces.8x8x16.bmp
459pegbox_header.96x32x16.bmp
456#endif /* different colour displays */ 460#endif /* different colour displays */
457#elif LCD_DEPTH > 1 461#elif LCD_DEPTH > 1
458#if LCD_WIDTH >= 160 462#if LCD_WIDTH >= 160
@@ -692,6 +696,8 @@ star_tiles.11x11.bmp
692star_tiles.10x10.bmp 696star_tiles.10x10.bmp
693#elif (STAR_TILESIZE >= 8) 697#elif (STAR_TILESIZE >= 8)
694star_tiles.8x8.bmp 698star_tiles.8x8.bmp
699#elif (STAR_TILESIZE >= 6)
700star_tiles.6x6.bmp
695#endif 701#endif
696#elif LCD_DEPTH > 1 /* grey */ 702#elif LCD_DEPTH > 1 /* grey */
697#if LCD_WIDTH >= 160 && LCD_HEIGHT >= 98 703#if LCD_WIDTH >= 160 && LCD_HEIGHT >= 98
diff --git a/apps/plugins/bitmaps/native/pegbox_header.96x32x16.bmp b/apps/plugins/bitmaps/native/pegbox_header.96x32x16.bmp
new file mode 100644
index 0000000000..d83494b679
--- /dev/null
+++ b/apps/plugins/bitmaps/native/pegbox_header.96x32x16.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/pegbox_pieces.8x8x16.bmp b/apps/plugins/bitmaps/native/pegbox_pieces.8x8x16.bmp
new file mode 100644
index 0000000000..ca80fb8a43
--- /dev/null
+++ b/apps/plugins/bitmaps/native/pegbox_pieces.8x8x16.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/star_tiles.6x6.bmp b/apps/plugins/bitmaps/native/star_tiles.6x6.bmp
new file mode 100644
index 0000000000..da047d87fb
--- /dev/null
+++ b/apps/plugins/bitmaps/native/star_tiles.6x6.bmp
Binary files differ
diff --git a/apps/plugins/pegbox.c b/apps/plugins/pegbox.c
index 635335a91c..babe653e93 100644
--- a/apps/plugins/pegbox.c
+++ b/apps/plugins/pegbox.c
@@ -638,6 +638,10 @@ CONFIG_KEYPAD == MROBE500_PAD
638#define LEVEL_TEXT_X 25 638#define LEVEL_TEXT_X 25
639#define PEGS_TEXT_X 90 639#define PEGS_TEXT_X 90
640#define TEXT_Y 0 640#define TEXT_Y 0
641#elif LCD_WIDTH >= 96
642#define LEVEL_TEXT_X 25
643#define PEGS_TEXT_X 86
644#define TEXT_Y 22
641#endif /* LCD_WIDTH */ 645#endif /* LCD_WIDTH */
642 646
643#endif /* WIDE_LAYOUT */ 647#endif /* WIDE_LAYOUT */
@@ -843,7 +847,11 @@ static void pegbox_draw_board(struct game_context* pb)
843 847
844#ifdef HAVE_LCD_COLOR 848#ifdef HAVE_LCD_COLOR
845 rb->lcd_set_foreground(LCD_WHITE); 849 rb->lcd_set_foreground(LCD_WHITE);
850#if ((BOARD_HEIGHT + HEADER_HEIGHT + 2) <= LCD_HEIGHT)
846 rb->lcd_fillrect(BOARD_X-1,BOARD_Y-1,BOARD_WIDTH+2,BOARD_HEIGHT+2); 851 rb->lcd_fillrect(BOARD_X-1,BOARD_Y-1,BOARD_WIDTH+2,BOARD_HEIGHT+2);
852#else
853 rb->lcd_fillrect(BOARD_X,BOARD_Y,BOARD_WIDTH,BOARD_HEIGHT);
854#endif
847 rb->lcd_set_foreground(LCD_BLACK); 855 rb->lcd_set_foreground(LCD_BLACK);
848 rb->lcd_set_background(TEXT_BG); 856 rb->lcd_set_background(TEXT_BG);
849#endif 857#endif
diff --git a/apps/plugins/rockpaint.c b/apps/plugins/rockpaint.c
index ac9f5dab5e..9ec289fce4 100644
--- a/apps/plugins/rockpaint.c
+++ b/apps/plugins/rockpaint.c
@@ -221,6 +221,17 @@
221#define ROCKPAINT_LEFT BUTTON_LEFT 221#define ROCKPAINT_LEFT BUTTON_LEFT
222#define ROCKPAINT_RIGHT BUTTON_RIGHT 222#define ROCKPAINT_RIGHT BUTTON_RIGHT
223 223
224#elif CONFIG_KEYPAD == SANSA_CLIP_PAD
225#define ROCKPAINT_QUIT BUTTON_POWER
226#define ROCKPAINT_DRAW BUTTON_SELECT
227#define ROCKPAINT_MENU BUTTON_HOME
228#define ROCKPAINT_TOOLBAR BUTTON_VOL_UP
229#define ROCKPAINT_TOOLBAR2 BUTTON_VOL_DOWN
230#define ROCKPAINT_UP BUTTON_UP
231#define ROCKPAINT_DOWN BUTTON_DOWN
232#define ROCKPAINT_LEFT BUTTON_LEFT
233#define ROCKPAINT_RIGHT BUTTON_RIGHT
234
224#else 235#else
225#error "Please define keys for this keypad" 236#error "Please define keys for this keypad"
226#endif 237#endif