summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMarianne Arnold <pixelma@rockbox.org>2007-09-28 22:05:22 +0000
committerMarianne Arnold <pixelma@rockbox.org>2007-09-28 22:05:22 +0000
commitbb62942b8959c2dcc5be7977f7e8e89c4b4536bc (patch)
tree33b31fa9dbe842ff6b001c9d76b59eb7c9bc0b02 /apps
parent7cbc161d517eb9bfbd2a251d82f62b07c1752168 (diff)
downloadrockbox-bb62942b8959c2dcc5be7977f7e8e89c4b4536bc.zip
rockbox-bb62942b8959c2dcc5be7977f7e8e89c4b4536bc.tar.gz
rockbox-bb62942b8959c2dcc5be7977f7e8e89c4b4536bc.tar.bz2
rockbox-bb62942b8959c2dcc5be7977f7e8e89c4b4536bc.tar.xz
Bubbles for Sansa c200.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14894 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/SOURCES2
-rw-r--r--apps/plugins/bitmaps/mono/SOURCES2
-rwxr-xr-xapps/plugins/bitmaps/mono/bubbles_bubble.132x80x16.bmpbin0 -> 94 bytes
-rw-r--r--apps/plugins/bitmaps/native/SOURCES3
-rw-r--r--apps/plugins/bitmaps/native/bubbles_background.132x80x16.bmpbin0 -> 31734 bytes
-rw-r--r--apps/plugins/bitmaps/native/bubbles_emblem.132x80x16.bmpbin0 -> 1014 bytes
-rw-r--r--apps/plugins/bubbles.c17
7 files changed, 22 insertions, 2 deletions
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES
index 7862d55..69ace61 100644
--- a/apps/plugins/SOURCES
+++ b/apps/plugins/SOURCES
@@ -52,9 +52,7 @@ plasma.c
blackjack.c
bounce.c
-#ifndef SANSA_C200
bubbles.c
-#endif
#if (LCD_WIDTH >= 160)
invadrox.c
diff --git a/apps/plugins/bitmaps/mono/SOURCES b/apps/plugins/bitmaps/mono/SOURCES
index d74905f..3917828 100644
--- a/apps/plugins/bitmaps/mono/SOURCES
+++ b/apps/plugins/bitmaps/mono/SOURCES
@@ -3,6 +3,8 @@
/* Bubbles */
#if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64)
bubbles_bubble.112x64x1.bmp
+#elif (LCD_WIDTH == 132) && (LCD_HEIGHT == 80)
+bubbles_bubble.132x80x16.bmp
#elif ((LCD_WIDTH == 160) && (LCD_HEIGHT == 128)) || \
((LCD_WIDTH == 128) && (LCD_HEIGHT == 128))
bubbles_bubble.160x128x1.bmp
diff --git a/apps/plugins/bitmaps/mono/bubbles_bubble.132x80x16.bmp b/apps/plugins/bitmaps/mono/bubbles_bubble.132x80x16.bmp
new file mode 100755
index 0000000..47cdd50
--- /dev/null
+++ b/apps/plugins/bitmaps/mono/bubbles_bubble.132x80x16.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/SOURCES b/apps/plugins/bitmaps/native/SOURCES
index 5e66779..430f5f9 100644
--- a/apps/plugins/bitmaps/native/SOURCES
+++ b/apps/plugins/bitmaps/native/SOURCES
@@ -82,6 +82,9 @@ bubbles_background.160x128x16.bmp
#elif (LCD_WIDTH >= 128) && (LCD_HEIGHT >= 128)
bubbles_emblem.160x128x16.bmp
bubbles_background.128x128x16.bmp
+#elif (LCD_WIDTH >= 132) && (LCD_HEIGHT >= 80)
+bubbles_emblem.132x80x16.bmp
+bubbles_background.132x80x16.bmp
#endif
#elif LCD_DEPTH <= 2 /* greyscale, mono */
#if (LCD_WIDTH >= 160) && (LCD_HEIGHT >= 128)
diff --git a/apps/plugins/bitmaps/native/bubbles_background.132x80x16.bmp b/apps/plugins/bitmaps/native/bubbles_background.132x80x16.bmp
new file mode 100644
index 0000000..beddf71
--- /dev/null
+++ b/apps/plugins/bitmaps/native/bubbles_background.132x80x16.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/bubbles_emblem.132x80x16.bmp b/apps/plugins/bitmaps/native/bubbles_emblem.132x80x16.bmp
new file mode 100644
index 0000000..04664ec
--- /dev/null
+++ b/apps/plugins/bitmaps/native/bubbles_emblem.132x80x16.bmp
Binary files differ
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c
index 812a88f..05ce15d7 100644
--- a/apps/plugins/bubbles.c
+++ b/apps/plugins/bubbles.c
@@ -174,6 +174,17 @@ PLUGIN_HEADER
#define ROW_INDENT 5
#define MAX_FPS 30
+/* 8x8 bubbles (Sansa C200) */
+#elif (LCD_HEIGHT == 80) && (LCD_WIDTH == 132)
+#define BUBBLE_WIDTH 8
+#define BUBBLE_HEIGHT 8
+#define EMBLEM_WIDTH 6
+#define EMBLEM_HEIGHT 6
+#define XOFS 45
+#define ROW_HEIGHT 6
+#define ROW_INDENT 4
+#define MAX_FPS 30
+
/* 8x7 bubbles (Archos recorder, Ondio) */
#elif (LCD_HEIGHT == 64) && (LCD_WIDTH == 112)
#define BUBBLE_WIDTH 8
@@ -2456,6 +2467,12 @@ static int bubbles(struct game_context* bb) {
rb->lcd_puts(0, 6, " and show high scores");
rb->lcd_puts(0, 7, "SCROLL to aim");
rb->lcd_puts(0, 8, " and change level");
+#elif CONFIG_KEYPAD == SANSA_C200_PAD
+ rb->lcd_puts(0, 2, "PLAY to start/pause");
+ rb->lcd_puts(0, 3, "SUBMENU to save/resume");
+ rb->lcd_puts(0, 4, "POWER to exit");
+ rb->lcd_puts_scroll(0, 5, "SELECT to fire and show high scores, "
+ "LEFT/RIGHT to aim and change level");
#endif
#if LCD_WIDTH >= 138
rb->snprintf(str, 28, "Start on level %d of %d", startlevel+1,