diff options
author | Teruaki Kawashima <teru@rockbox.org> | 2009-08-19 13:57:40 +0000 |
---|---|---|
committer | Teruaki Kawashima <teru@rockbox.org> | 2009-08-19 13:57:40 +0000 |
commit | 2bbcf505dd91f39b81b996663db06c4cde1e6a22 (patch) | |
tree | 11d1889dbc2db64ae72ac898e94d4a83b73cc8b9 | |
parent | 237d36cd93e5ebd7d2c0942927f25e3805ca9ace (diff) | |
download | rockbox-2bbcf505dd91f39b81b996663db06c4cde1e6a22.tar.gz rockbox-2bbcf505dd91f39b81b996663db06c4cde1e6a22.zip |
brickmania: fix position of score in function brickmania_sleep.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22429 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/brickmania.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index b5c31372f3..d033cb19a0 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c | |||
@@ -765,11 +765,7 @@ static void brickmania_sleep(int secs) | |||
765 | vscore--; | 765 | vscore--; |
766 | rb->snprintf(s, sizeof(s), "%d", vscore); | 766 | rb->snprintf(s, sizeof(s), "%d", vscore); |
767 | rb->lcd_getstringsize(s, &sw, &w); | 767 | rb->lcd_getstringsize(s, &sw, &w); |
768 | #if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64) | ||
769 | rb->lcd_putsxy(LCD_WIDTH/2-sw/2, 0, s); | 768 | rb->lcd_putsxy(LCD_WIDTH/2-sw/2, 0, s); |
770 | #else | ||
771 | rb->lcd_putsxy(LCD_WIDTH/2-sw/2, 2, s); | ||
772 | #endif | ||
773 | rb->lcd_update_rect(0,0,LCD_WIDTH,w+2); | 769 | rb->lcd_update_rect(0,0,LCD_WIDTH,w+2); |
774 | } | 770 | } |
775 | rb->yield(); | 771 | rb->yield(); |
@@ -942,7 +938,7 @@ static int brickmania_pad_check(int ballxc, int mode, int pon ,int ballnum) | |||
942 | if (ball[ballnum].x > 0) | 938 | if (ball[ballnum].x > 0) |
943 | return ballxc; | 939 | return ballxc; |
944 | else | 940 | else |
945 | return ballxc*-1; | 941 | return ballxc*-1; |
946 | } | 942 | } |
947 | } | 943 | } |
948 | 944 | ||
@@ -1022,11 +1018,7 @@ static int brickmania_game_loop(void) | |||
1022 | if (vscore<score) vscore++; | 1018 | if (vscore<score) vscore++; |
1023 | rb->snprintf(s, sizeof(s), "%d", vscore); | 1019 | rb->snprintf(s, sizeof(s), "%d", vscore); |
1024 | rb->lcd_getstringsize(s, &sw, NULL); | 1020 | rb->lcd_getstringsize(s, &sw, NULL); |
1025 | #if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64) | ||
1026 | rb->lcd_putsxy(LCD_WIDTH/2-sw/2, 0, s); | 1021 | rb->lcd_putsxy(LCD_WIDTH/2-sw/2, 0, s); |
1027 | #else | ||
1028 | rb->lcd_putsxy(LCD_WIDTH/2-sw/2, 0, s); | ||
1029 | #endif | ||
1030 | 1022 | ||
1031 | /* continue game */ | 1023 | /* continue game */ |
1032 | if (game_state==ST_PAUSE) { | 1024 | if (game_state==ST_PAUSE) { |