From 5d0ac8db6f26624d259e94873f0c27a0533d0815 Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Sun, 4 Oct 2009 05:29:40 +0000 Subject: [PATCH] Brickmania: Fix paddle position jumps when an N powerup is picked up. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22909 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/brickmania.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index 5e0f7fd73c..059d3c3336 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c @@ -276,9 +276,9 @@ CONFIG_KEYPAD == SANSA_M200_PAD #endif /* The time (in ms) for one iteration through the game loop - decrease this - to speed up the game - note that current_tick is (currently) only accurate - to 10ms. -*/ + * to speed up the game - note that current_tick is (currently) only accurate + * to 10ms. + */ #define CYCLETIME 30 #define TOPMARGIN MAX(BRICK_HEIGHT, FIXED3(8)) @@ -291,10 +291,8 @@ CONFIG_KEYPAD == SANSA_M200_PAD /* Brickmania was originally designed for the H300, other targets should scale * the speed up/down as needed based on the screen height. */ -#define SPEED_SCALE_H(y) \ - FIXED3_DIV(GAMESCREEN_HEIGHT, FIXED3(176)/(y) ) -#define SPEED_SCALE_W(x) \ - FIXED3_DIV(GAMESCREEN_WIDTH, FIXED3(220)/(x) ) +#define SPEED_SCALE_H(y) FIXED3_DIV(GAMESCREEN_HEIGHT, FIXED3(176)/(y) ) +#define SPEED_SCALE_W(x) FIXED3_DIV(GAMESCREEN_WIDTH, FIXED3(220)/(x) ) /* These are all used as ball speeds depending on where the ball hit the * paddle. @@ -1368,7 +1366,8 @@ static int brickmania_game_loop(void) for(k=0;k