diff options
author | Marcoen Hirschberg <marcoen@gmail.com> | 2007-05-20 00:19:53 +0000 |
---|---|---|
committer | Marcoen Hirschberg <marcoen@gmail.com> | 2007-05-20 00:19:53 +0000 |
commit | 5b0ced85c3cec25452f554b2c05e21c3c5f9c416 (patch) | |
tree | 86defb5b143723fcd556f70146496a8753d01ab8 /apps/plugins/spacerocks.c | |
parent | a7168feeac24ff192e1174717dbfa5582509babf (diff) |
directly calculate some defines from the screen size
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13437 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/spacerocks.c')
-rw-r--r-- | apps/plugins/spacerocks.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/apps/plugins/spacerocks.c b/apps/plugins/spacerocks.c index 47be0cd6fe..85445a0dd4 100644 --- a/apps/plugins/spacerocks.c +++ b/apps/plugins/spacerocks.c @@ -149,25 +149,11 @@ static struct plugin_api* rb; /* global api struct pointer */ #define ABS(x) ((x)>0?(x):-(x)) -#if CONFIG_KEYPAD == RECORDER_PAD || CONFIG_KEYPAD == ONDIO_PAD - #define ENEMY_MISSILE_SURVIVAL_LENGTH 65 - #define MISSILE_SURVIVAL_LENGTH 40 - #define ASTEROID_SPEED 5 - #define LARGE_LCD 0 -#elif (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ - (CONFIG_KEYPAD == IRIVER_H300_PAD) || \ - (CONFIG_KEYPAD == IAUDIO_X5M5_PAD) || \ - (CONFIG_KEYPAD == IPOD_3G_PAD) || \ - (CONFIG_KEYPAD == IPOD_4G_PAD) || \ - (CONFIG_KEYPAD == GIGABEAT_PAD)|| \ - (CONFIG_KEYPAD == ARCHOS_AV300_PAD)|| \ - (CONFIG_KEYPAD == IRIVER_H10_PAD)|| \ - (CONFIG_KEYPAD == SANSA_E200_PAD) - #define ENEMY_MISSILE_SURVIVAL_LENGTH 140 - #define MISSILE_SURVIVAL_LENGTH 40 - #define ASTEROID_SPEED 15 - #define LARGE_LCD 1 -#endif +#define RES MAX(LCD_WIDTH, LCD_HEIGHT) +#define LARGE_LCD RES >= 200 +#define ENEMY_MISSILE_SURVIVAL_LENGTH RES/2 +#define ASTEROID_SPEED RES/20 +#define MISSILE_SURVIVAL_LENGTH 40 #define EXTRA_LIFE 250 #define SCALE 5000 |