Patch #5102 by Anton Romanov: Bubbles for ipod mini.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9677 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2006-04-15 12:30:37 +00:00
parent 7b22e99bd8
commit 13ade06d4a
6 changed files with 22 additions and 1 deletions

View file

@ -36,7 +36,7 @@ plasma.c
#endif
bounce.c
#if (LCD_WIDTH >= 160) && (LCD_HEIGHT >= 128)
#if ((LCD_WIDTH >= 138) && (LCD_HEIGHT >= 110))
bubbles.c
#endif
#if LCD_WIDTH != 128

View file

@ -5,6 +5,8 @@
bubbles_bubble.160x128x1.bmp
#elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 132)
bubbles_bubble.160x128x1.bmp
#elif (LCD_WIDTH == 138) && (LCD_HEIGHT == 110)
bubbles_bubble.138x110x1.bmp
#elif ((LCD_WIDTH == 220) && (LCD_HEIGHT == 176)) || \
((LCD_WIDTH == 240) && (LCD_HEIGHT == 320))
bubbles_bubble.220x176x1.bmp

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

View file

@ -3,6 +3,8 @@
/* Bubbles */
#if (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) && !defined(HAVE_LCD_COLOR)
bubbles_emblem.160x128x2.bmp
#elif (LCD_WIDTH == 138) && (LCD_HEIGHT == 110)
bubbles_emblem.138x110x2.bmp
#elif (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) && defined(HAVE_LCD_COLOR)
bubbles_emblem.160x128x16.bmp
bubbles_left.160x128x16.bmp

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,014 B

View file

@ -144,6 +144,15 @@ PLUGIN_HEADER
#define ROW_INDENT 6
#define MAX_FPS 30
/* 10x10 bubbles (iPod Mini) */
#elif (LCD_HEIGHT == 110) && (LCD_WIDTH == 138)
#define BUBBLE_SZ 10
#define EMBLEM_SZ 6
#define XOFS 33
#define ROW_HEIGHT 8
#define ROW_INDENT 6
#define MAX_FPS 30
#else
#error BUBBLES: Unsupported LCD type
#endif
@ -2436,10 +2445,18 @@ static int bubbles(struct game_context* bb) {
rb->snprintf(str, 28, "Start on level %d of %d", startlevel+1,
bb->highlevel+1);
rb->lcd_puts(0, 10, str);
#if LCD_HEIGHT > 110
rb->lcd_puts(0, 12, "High Score:");
#else
rb->lcd_puts(0, 11, "High Score:");
#endif
rb->snprintf(str, 30, "%d, Lvl %d",
bb->highscores[0].score, bb->highscores[0].level);
#if LCD_HEIGHT > 110
rb->lcd_puts(2, 13, str);
#else
rb->lcd_puts(2, 12, str);
#endif
} else {
/* show high scores */
rb->snprintf(str, 12, "%s", "High Scores");