diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2006-04-15 12:30:37 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2006-04-15 12:30:37 +0000 |
| commit | 13ade06d4a2d3ae39198c569b319bcdd155fae57 (patch) | |
| tree | 9b20dfb5404182c82621461a3c3a640cadbe6bce /apps/plugins/bubbles.c | |
| parent | 7b22e99bd82a751f542fd8a1290d923510cfb381 (diff) | |
| download | rockbox-13ade06d4a2d3ae39198c569b319bcdd155fae57.zip rockbox-13ade06d4a2d3ae39198c569b319bcdd155fae57.tar.gz rockbox-13ade06d4a2d3ae39198c569b319bcdd155fae57.tar.bz2 rockbox-13ade06d4a2d3ae39198c569b319bcdd155fae57.tar.xz | |
Patch #5102 by Anton Romanov: Bubbles for ipod mini.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9677 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/bubbles.c')
| -rwxr-xr-x | apps/plugins/bubbles.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c index 7ff8b62..19bc7a1 100755 --- a/apps/plugins/bubbles.c +++ b/apps/plugins/bubbles.c @@ -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"); |