summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-11-13 21:25:27 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-11-13 21:25:27 +0000
commite0d0eedc905679e941f35b0a03fd593a8aee9b15 (patch)
tree5b6ef243e2f4e4bb9dde201601da017b081c4a29 /apps
parent169b3048e34c224bb5489572e9f30b3e5379d7aa (diff)
downloadrockbox-e0d0eedc905679e941f35b0a03fd593a8aee9b15.zip
rockbox-e0d0eedc905679e941f35b0a03fd593a8aee9b15.tar.gz
rockbox-e0d0eedc905679e941f35b0a03fd593a8aee9b15.tar.bz2
rockbox-e0d0eedc905679e941f35b0a03fd593a8aee9b15.tar.xz
Sansa clip zip: update plugins (jewels, pegbox, rockpaint, star)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30976 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-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 65b1a38..8eaf623 100644
--- a/apps/plugins/bitmaps/native/SOURCES
+++ b/apps/plugins/bitmaps/native/SOURCES
@@ -386,7 +386,8 @@ jewels.112x64x1.bmp
jewels.128x128x16.bmp
#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 160)
jewels.128x128x16.bmp
-#elif (LCD_WIDTH == 132) && (LCD_HEIGHT == 80)
+#elif ((LCD_WIDTH == 132) && (LCD_HEIGHT == 80)) || \
+ ((LCD_WIDTH == 96) && (LCD_HEIGHT == 96))
jewels.132x80x16.bmp
#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 96)
jewels.128x96x2.bmp
@@ -453,6 +454,9 @@ pegbox_header.22x80x16.bmp
#elif LCD_WIDTH >= 128
pegbox_pieces.10x10x16.bmp
pegbox_header.128x42x16.bmp
+#elif LCD_WIDTH >= 96
+pegbox_pieces.8x8x16.bmp
+pegbox_header.96x32x16.bmp
#endif /* different colour displays */
#elif LCD_DEPTH > 1
#if LCD_WIDTH >= 160
@@ -692,6 +696,8 @@ star_tiles.11x11.bmp
star_tiles.10x10.bmp
#elif (STAR_TILESIZE >= 8)
star_tiles.8x8.bmp
+#elif (STAR_TILESIZE >= 6)
+star_tiles.6x6.bmp
#endif
#elif LCD_DEPTH > 1 /* grey */
#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 0000000..d83494b
--- /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 0000000..ca80fb8
--- /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 0000000..da047d8
--- /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 635335a..babe653 100644
--- a/apps/plugins/pegbox.c
+++ b/apps/plugins/pegbox.c
@@ -638,6 +638,10 @@ CONFIG_KEYPAD == MROBE500_PAD
#define LEVEL_TEXT_X 25
#define PEGS_TEXT_X 90
#define TEXT_Y 0
+#elif LCD_WIDTH >= 96
+#define LEVEL_TEXT_X 25
+#define PEGS_TEXT_X 86
+#define TEXT_Y 22
#endif /* LCD_WIDTH */
#endif /* WIDE_LAYOUT */
@@ -843,7 +847,11 @@ static void pegbox_draw_board(struct game_context* pb)
#ifdef HAVE_LCD_COLOR
rb->lcd_set_foreground(LCD_WHITE);
+#if ((BOARD_HEIGHT + HEADER_HEIGHT + 2) <= LCD_HEIGHT)
rb->lcd_fillrect(BOARD_X-1,BOARD_Y-1,BOARD_WIDTH+2,BOARD_HEIGHT+2);
+#else
+ rb->lcd_fillrect(BOARD_X,BOARD_Y,BOARD_WIDTH,BOARD_HEIGHT);
+#endif
rb->lcd_set_foreground(LCD_BLACK);
rb->lcd_set_background(TEXT_BG);
#endif
diff --git a/apps/plugins/rockpaint.c b/apps/plugins/rockpaint.c
index ac9f5da..9ec289f 100644
--- a/apps/plugins/rockpaint.c
+++ b/apps/plugins/rockpaint.c
@@ -221,6 +221,17 @@
#define ROCKPAINT_LEFT BUTTON_LEFT
#define ROCKPAINT_RIGHT BUTTON_RIGHT
+#elif CONFIG_KEYPAD == SANSA_CLIP_PAD
+#define ROCKPAINT_QUIT BUTTON_POWER
+#define ROCKPAINT_DRAW BUTTON_SELECT
+#define ROCKPAINT_MENU BUTTON_HOME
+#define ROCKPAINT_TOOLBAR BUTTON_VOL_UP
+#define ROCKPAINT_TOOLBAR2 BUTTON_VOL_DOWN
+#define ROCKPAINT_UP BUTTON_UP
+#define ROCKPAINT_DOWN BUTTON_DOWN
+#define ROCKPAINT_LEFT BUTTON_LEFT
+#define ROCKPAINT_RIGHT BUTTON_RIGHT
+
#else
#error "Please define keys for this keypad"
#endif