Add backgrounds for 128x160 displays to bubbles and rockblox. Set the coordinates in the code.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29020 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-01-10 07:32:29 +00:00
parent fedd1f3bc1
commit 9f4fdbd1a6
5 changed files with 27 additions and 12 deletions

View file

@ -139,6 +139,9 @@ bubbles_background.176x132x16.bmp
#elif (LCD_WIDTH >= 160) && (LCD_HEIGHT >= 128)
bubbles_emblem.160x128x16.bmp
bubbles_background.160x128x16.bmp
#elif (LCD_WIDTH >= 128) && (LCD_HEIGHT >= 160)
bubbles_emblem.160x128x16.bmp
bubbles_background.128x160x16.bmp
#elif (LCD_WIDTH >= 128) && (LCD_HEIGHT >= 128)
bubbles_emblem.160x128x16.bmp
bubbles_background.128x128x16.bmp
@ -492,6 +495,8 @@ rockblox_background.176x220x16.bmp
rockblox_background.176x132x16.bmp
#elif (LCD_WIDTH == 160) && (LCD_HEIGHT == 128)
rockblox_background.160x128x16.bmp
#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 160)
rockblox_background.128x160x16.bmp
#elif (LCD_WIDTH == 128) && (LCD_HEIGHT >= 128)
rockblox_background.128x128x16.bmp
#elif (LCD_WIDTH == 132) && (LCD_HEIGHT == 80)

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View file

@ -164,11 +164,23 @@ enum {
/* 12x12 bubbles (GoGear SA9200) */
#elif (LCD_HEIGHT == 160) && (LCD_WIDTH == 128)
#define XOFS 33
#define XOFS 16
#define YOFS 32
#define ROW_HEIGHT 10
#define ROW_INDENT 6
#define MAX_FPS 30
/* custom text positioning */
#define LEVEL_TXT_X 2
#define LEVEL_TXT_WIDTH 31
#define LEVEL_TXT_Y 3
#define SCORE_TXT_X 34
#define SCORE_TXT_WIDTH 31
#define SCORE_TXT_Y 3
#define NEXT_BB_X 81
#define NEXT_BB_WIDTH 31
#define NEXT_BB_Y 2
/* 10x10 bubbles (iPod Mini) */
#elif (LCD_HEIGHT == 110) && (LCD_WIDTH == 138)
#define XOFS 33

View file

@ -557,20 +557,18 @@
#define LEVEL_Y 49
#define LINES_Y 82
/* NOTE: This is for the GoGear SA9200 and is only
temporary until I can get better coordinates! */
#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 160)
#define BLOCK_WIDTH 6
#define BLOCK_HEIGHT 6
#define BLOCK_WIDTH 7
#define BLOCK_HEIGHT 7
#define BOARD_X 4
#define BOARD_Y 3
#define PREVIEW_X 84
#define PREVIEW_Y 100
#define LABEL_X 71
#define SCORE_Y 17
#define LEVEL_Y 49
#define LINES_Y 82
#define BOARD_Y 5
#define PREVIEW_X 88
#define PREVIEW_Y 111
#define LABEL_X 82
#define SCORE_Y (2+16)
#define LEVEL_Y (36+16)
#define LINES_Y (70+16)
#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 96)