diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/jewels.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/apps/plugins/jewels.c b/apps/plugins/jewels.c index e3dfcc3866..efec63f2cc 100644 --- a/apps/plugins/jewels.c +++ b/apps/plugins/jewels.c | |||
@@ -273,25 +273,18 @@ CONFIG_KEYPAD == MROBE500_PAD | |||
273 | #endif | 273 | #endif |
274 | #endif | 274 | #endif |
275 | 275 | ||
276 | /* use 10x8 tiles (iFP 700) */ | ||
277 | #if (LCD_HEIGHT == 64) && (LCD_WIDTH == 128) | ||
278 | #define NUM_SCORES 5 | ||
279 | |||
280 | /* use 10x8 tiles (Recorder, Ondio) */ | ||
281 | #elif (LCD_HEIGHT == 64) && (LCD_WIDTH == 112) | ||
282 | #define NUM_SCORES 5 | ||
283 | #endif | ||
284 | |||
285 | #define TILE_WIDTH BMPWIDTH_jewels | 276 | #define TILE_WIDTH BMPWIDTH_jewels |
286 | #define TILE_HEIGHT (BMPHEIGHT_jewels/23) | 277 | #define TILE_HEIGHT (BMPHEIGHT_jewels/23) |
287 | 278 | ||
279 | #if LCD_HEIGHT < LCD_WIDTH | ||
288 | /* This calculation assumes integer division w/ LCD_HEIGHT/TILE_HEIGHT */ | 280 | /* This calculation assumes integer division w/ LCD_HEIGHT/TILE_HEIGHT */ |
289 | #define YOFS LCD_HEIGHT-((LCD_HEIGHT/TILE_HEIGHT)*TILE_HEIGHT) | 281 | #define YOFS LCD_HEIGHT-((LCD_HEIGHT/TILE_HEIGHT)*TILE_HEIGHT) |
290 | 282 | #else | |
291 | #if !defined(NUM_SCORES) | 283 | #define YOFS 0 |
292 | #define NUM_SCORES LCD_HEIGHT/10 | ||
293 | #endif | 284 | #endif |
294 | 285 | ||
286 | #define NUM_SCORES 5 | ||
287 | |||
295 | /* swap directions */ | 288 | /* swap directions */ |
296 | #define SWAP_UP 0 | 289 | #define SWAP_UP 0 |
297 | #define SWAP_RIGHT 1 | 290 | #define SWAP_RIGHT 1 |