mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-15 08:02:34 -05:00
set YOFS to 0 for portrait LCDs.
set NUM_SCORES to 5 for all targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21959 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
36c32ad328
commit
03cb2b83ae
1 changed files with 5 additions and 12 deletions
|
|
@ -273,25 +273,18 @@ CONFIG_KEYPAD == MROBE500_PAD
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/* use 10x8 tiles (iFP 700) */
|
||||
#if (LCD_HEIGHT == 64) && (LCD_WIDTH == 128)
|
||||
#define NUM_SCORES 5
|
||||
|
||||
/* use 10x8 tiles (Recorder, Ondio) */
|
||||
#elif (LCD_HEIGHT == 64) && (LCD_WIDTH == 112)
|
||||
#define NUM_SCORES 5
|
||||
#endif
|
||||
|
||||
#define TILE_WIDTH BMPWIDTH_jewels
|
||||
#define TILE_HEIGHT (BMPHEIGHT_jewels/23)
|
||||
|
||||
#if LCD_HEIGHT < LCD_WIDTH
|
||||
/* This calculation assumes integer division w/ LCD_HEIGHT/TILE_HEIGHT */
|
||||
#define YOFS LCD_HEIGHT-((LCD_HEIGHT/TILE_HEIGHT)*TILE_HEIGHT)
|
||||
|
||||
#if !defined(NUM_SCORES)
|
||||
#define NUM_SCORES LCD_HEIGHT/10
|
||||
#else
|
||||
#define YOFS 0
|
||||
#endif
|
||||
|
||||
#define NUM_SCORES 5
|
||||
|
||||
/* swap directions */
|
||||
#define SWAP_UP 0
|
||||
#define SWAP_RIGHT 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue