summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-05-13 17:45:07 +0000
committerThomas Martitz <kugel@rockbox.org>2009-05-13 17:45:07 +0000
commit11231155591526ad78e9cfc8c77c0ea0be6738a3 (patch)
tree3fe2b9bf80ece8e2a6e0957df89c32bc0e3c18ee
parent04c2df541bfa4d6a81bd800bb0d5852528ce70a5 (diff)
downloadrockbox-11231155591526ad78e9cfc8c77c0ea0be6738a3.tar.gz
rockbox-11231155591526ad78e9cfc8c77c0ea0be6738a3.zip
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
-rw-r--r--apps/plugins/bitmaps/native/rockblox_background.176x220x16.bmpbin116214 -> 154934 bytes
-rw-r--r--apps/plugins/rockblox.c21
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
index a327777c21..381c0c2d82 100644
--- a/apps/plugins/bitmaps/native/rockblox_background.176x220x16.bmp
+++ b/apps/plugins/bitmaps/native/rockblox_background.176x220x16.bmp
Binary files differ
diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c
index 474cc02d4c..6fb8cdb478 100644
--- a/apps/plugins/rockblox.c
+++ b/apps/plugins/rockblox.c
@@ -412,18 +412,26 @@ PLUGIN_HEADER
412 412
413#elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 220) 413#elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 220)
414 414
415/* no room for the space in the highscore list */
416#define _SPACE ""
417
415#define BLOCK_WIDTH 10 418#define BLOCK_WIDTH 10
416#define BLOCK_HEIGHT 10 419#define BLOCK_HEIGHT 10
417#define BOARD_X 6 420#define BOARD_X 6
418#define BOARD_Y 10 421#define BOARD_Y 10
419#define PREVIEW_X 124 422#define PREVIEW_X 124
420#define PREVIEW_Y 167 423#define PREVIEW_Y 174
421#define LABEL_X 117 424#define LABEL_X 117
422#define SCORE_Y 24 425#define SCORE_Y 18
423#define LEVEL_Y 65 426#define LEVEL_Y 52
424#define LINES_Y 103 427#define LINES_Y 85
428#define HIGH_SCORE_Y 119
429#define HIGH_LEVEL_Y 126
430#define HIGH_LABEL_X 114
431
425#elif (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) 432#elif (LCD_WIDTH == 160) && (LCD_HEIGHT == 128)
426 433
434
427#define BLOCK_WIDTH 6 435#define BLOCK_WIDTH 6
428#define BLOCK_HEIGHT 6 436#define BLOCK_HEIGHT 6
429#define BOARD_X 22 437#define BOARD_X 22
@@ -543,6 +551,9 @@ extern const fb_data rockblox_background[];
543 551
544#endif 552#endif
545 553
554#ifndef _SPACE
555#define _SPACE " "
556#endif
546/* <<Explanation on Rockblox shapes>> 557/* <<Explanation on Rockblox shapes>>
547 558
548 %% 559 %%
@@ -742,7 +753,7 @@ static void show_highscores (void)
742 753
743 for (i = MAX_HIGH_SCORES-1; i>=0; i--) 754 for (i = MAX_HIGH_SCORES-1; i>=0; i--)
744 { 755 {
745 rb->snprintf (str, sizeof (str), "%06d L%1d", Highest[i].score, Highest[i].level); 756 rb->snprintf (str, sizeof (str), "%06d" _SPACE "L%1d", Highest[i].score, Highest[i].level);
746 rb->lcd_putsxy (HIGH_LABEL_X, HIGH_SCORE_Y + (10 * ((MAX_HIGH_SCORES-1) - i)), str); 757 rb->lcd_putsxy (HIGH_LABEL_X, HIGH_SCORE_Y + (10 * ((MAX_HIGH_SCORES-1) - i)), str);
747 } 758 }
748} 759}