summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2009-08-19 13:57:40 +0000
committerTeruaki Kawashima <teru@rockbox.org>2009-08-19 13:57:40 +0000
commit2bbcf505dd91f39b81b996663db06c4cde1e6a22 (patch)
tree11d1889dbc2db64ae72ac898e94d4a83b73cc8b9 /apps/plugins
parent237d36cd93e5ebd7d2c0942927f25e3805ca9ace (diff)
downloadrockbox-2bbcf505dd91f39b81b996663db06c4cde1e6a22.zip
rockbox-2bbcf505dd91f39b81b996663db06c4cde1e6a22.tar.gz
rockbox-2bbcf505dd91f39b81b996663db06c4cde1e6a22.tar.bz2
rockbox-2bbcf505dd91f39b81b996663db06c4cde1e6a22.tar.xz
brickmania: fix position of score in function brickmania_sleep.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22429 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/brickmania.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index b5c3137..d033cb1 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -765,11 +765,7 @@ static void brickmania_sleep(int secs)
vscore--;
rb->snprintf(s, sizeof(s), "%d", vscore);
rb->lcd_getstringsize(s, &sw, &w);
-#if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64)
rb->lcd_putsxy(LCD_WIDTH/2-sw/2, 0, s);
-#else
- rb->lcd_putsxy(LCD_WIDTH/2-sw/2, 2, s);
-#endif
rb->lcd_update_rect(0,0,LCD_WIDTH,w+2);
}
rb->yield();
@@ -942,7 +938,7 @@ static int brickmania_pad_check(int ballxc, int mode, int pon ,int ballnum)
if (ball[ballnum].x > 0)
return ballxc;
else
- return ballxc*-1;
+ return ballxc*-1;
}
}
@@ -1022,11 +1018,7 @@ static int brickmania_game_loop(void)
if (vscore<score) vscore++;
rb->snprintf(s, sizeof(s), "%d", vscore);
rb->lcd_getstringsize(s, &sw, NULL);
-#if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64)
rb->lcd_putsxy(LCD_WIDTH/2-sw/2, 0, s);
-#else
- rb->lcd_putsxy(LCD_WIDTH/2-sw/2, 0, s);
-#endif
/* continue game */
if (game_state==ST_PAUSE) {