From bb62942b8959c2dcc5be7977f7e8e89c4b4536bc Mon Sep 17 00:00:00 2001 From: Marianne Arnold Date: Fri, 28 Sep 2007 22:05:22 +0000 Subject: Bubbles for Sansa c200. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14894 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/SOURCES | 2 -- apps/plugins/bitmaps/mono/SOURCES | 2 ++ apps/plugins/bitmaps/mono/bubbles_bubble.132x80x16.bmp | Bin 0 -> 94 bytes apps/plugins/bitmaps/native/SOURCES | 3 +++ .../bitmaps/native/bubbles_background.132x80x16.bmp | Bin 0 -> 31734 bytes .../bitmaps/native/bubbles_emblem.132x80x16.bmp | Bin 0 -> 1014 bytes apps/plugins/bubbles.c | 17 +++++++++++++++++ 7 files changed, 22 insertions(+), 2 deletions(-) create mode 100755 apps/plugins/bitmaps/mono/bubbles_bubble.132x80x16.bmp create mode 100644 apps/plugins/bitmaps/native/bubbles_background.132x80x16.bmp create mode 100644 apps/plugins/bitmaps/native/bubbles_emblem.132x80x16.bmp (limited to 'apps') diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES index 7862d554d4..69ace619a9 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 d74905fb0d..3917828bba 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 0000000000..47cdd508d9 Binary files /dev/null and b/apps/plugins/bitmaps/mono/bubbles_bubble.132x80x16.bmp differ diff --git a/apps/plugins/bitmaps/native/SOURCES b/apps/plugins/bitmaps/native/SOURCES index 5e66779abb..430f5f90e2 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 0000000000..beddf716ed Binary files /dev/null and b/apps/plugins/bitmaps/native/bubbles_background.132x80x16.bmp 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 0000000000..04664ec5aa Binary files /dev/null and b/apps/plugins/bitmaps/native/bubbles_emblem.132x80x16.bmp differ diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c index 812a88fb10..05ce15d75b 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, -- cgit v1.2.3