Brickmania: Use defined constant instead of hard-coded value

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25689 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomer Shalev 2010-04-20 08:46:44 +00:00
parent 4761efa573
commit 5c7a76d596

View file

@ -284,6 +284,9 @@ CONFIG_KEYPAD == SANSA_M200_PAD
#endif
#define NUM_BRICKS_ROWS 8
#define NUM_BRICKS_COLS 10
/*
*
* Geometric dimensions
@ -311,7 +314,7 @@ CONFIG_KEYPAD == SANSA_M200_PAD
#define LONG_PAD_WIDTH FIXED3(BMPWIDTH_brickmania_long_pads)
#define BRICK_HEIGHT FIXED3(BMPHEIGHT_brickmania_bricks/7)
#define BRICK_WIDTH FIXED3(BMPWIDTH_brickmania_bricks)
#define LEFTMARGIN ((GAMESCREEN_WIDTH-10*BRICK_WIDTH)/2)
#define LEFTMARGIN ((GAMESCREEN_WIDTH-NUM_BRICKS_COLS*BRICK_WIDTH)/2)
#define POWERUP_WIDTH FIXED3(BMPWIDTH_brickmania_powerups)
#define BALL FIXED3(BMPHEIGHT_brickmania_ball)
#define HALFBALL (BALL / 2)
@ -434,9 +437,6 @@ CONFIG_KEYPAD == SANSA_M200_PAD
*
*/
#define NUM_BRICKS_ROWS 8
#define NUM_BRICKS_COLS 10
/* change to however many levels there are, i.e. how many arrays there are total */
#define NUM_LEVELS 40