diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2009-05-13 17:45:07 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2009-05-13 17:45:07 +0000 |
| commit | 11231155591526ad78e9cfc8c77c0ea0be6738a3 (patch) | |
| tree | 3fe2b9bf80ece8e2a6e0957df89c32bc0e3c18ee /apps/plugins | |
| parent | 04c2df541bfa4d6a81bd800bb0d5852528ce70a5 (diff) | |
| download | rockbox-11231155591526ad78e9cfc8c77c0ea0be6738a3.zip rockbox-11231155591526ad78e9cfc8c77c0ea0be6738a3.tar.gz rockbox-11231155591526ad78e9cfc8c77c0ea0be6738a3.tar.bz2 rockbox-11231155591526ad78e9cfc8c77c0ea0be6738a3.tar.xz | |
Rockblox: Show Highscore list on 176x220 (e200). The space between the score and level is ommitted, since there's no room (the L is sufficient as seperator).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20928 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/bitmaps/native/rockblox_background.176x220x16.bmp | bin | 116214 -> 154934 bytes | |||
| -rw-r--r-- | apps/plugins/rockblox.c | 21 |
2 files changed, 16 insertions, 5 deletions
diff --git a/apps/plugins/bitmaps/native/rockblox_background.176x220x16.bmp b/apps/plugins/bitmaps/native/rockblox_background.176x220x16.bmp Binary files differindex a327777..381c0c2 100644 --- a/apps/plugins/bitmaps/native/rockblox_background.176x220x16.bmp +++ b/apps/plugins/bitmaps/native/rockblox_background.176x220x16.bmp diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c index 474cc02..6fb8cdb 100644 --- a/apps/plugins/rockblox.c +++ b/apps/plugins/rockblox.c @@ -412,18 +412,26 @@ PLUGIN_HEADER #elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 220) +/* no room for the space in the highscore list */ +#define _SPACE "" + #define BLOCK_WIDTH 10 #define BLOCK_HEIGHT 10 #define BOARD_X 6 #define BOARD_Y 10 #define PREVIEW_X 124 -#define PREVIEW_Y 167 +#define PREVIEW_Y 174 #define LABEL_X 117 -#define SCORE_Y 24 -#define LEVEL_Y 65 -#define LINES_Y 103 +#define SCORE_Y 18 +#define LEVEL_Y 52 +#define LINES_Y 85 +#define HIGH_SCORE_Y 119 +#define HIGH_LEVEL_Y 126 +#define HIGH_LABEL_X 114 + #elif (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) + #define BLOCK_WIDTH 6 #define BLOCK_HEIGHT 6 #define BOARD_X 22 @@ -543,6 +551,9 @@ extern const fb_data rockblox_background[]; #endif +#ifndef _SPACE +#define _SPACE " " +#endif /* <<Explanation on Rockblox shapes>> %% @@ -742,7 +753,7 @@ static void show_highscores (void) for (i = MAX_HIGH_SCORES-1; i>=0; i--) { - rb->snprintf (str, sizeof (str), "%06d L%1d", Highest[i].score, Highest[i].level); + rb->snprintf (str, sizeof (str), "%06d" _SPACE "L%1d", Highest[i].score, Highest[i].level); rb->lcd_putsxy (HIGH_LABEL_X, HIGH_SCORE_Y + (10 * ((MAX_HIGH_SCORES-1) - i)), str); } } |