1
0
Fork 0
forked from len0rd/rockbox

Snake2: Add support for 640x480 screens

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21991 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Karl Kurbjun 2009-07-21 04:22:19 +00:00
parent 70deae01ff
commit 83cf0df563
7 changed files with 20 additions and 3 deletions

View file

@ -476,7 +476,13 @@ rockpaint_hsvrgb.8x10x24.bmp
#endif #endif
/* Snake2 */ /* Snake2 */
#if (LCD_WIDTH >= 320) && (LCD_HEIGHT >= 240) && (LCD_DEPTH >= 16) #if (LCD_WIDTH >= 640) && (LCD_HEIGHT >= 480) && (LCD_DEPTH >= 16)
snake2_header1.640x480x16.bmp
snake2_header2.640x480x16.bmp
snake2_left.640x480x16.bmp
snake2_right.640x480x16.bmp
snake2_bottom.640x480x16.bmp
#elif (LCD_WIDTH >= 320) && (LCD_HEIGHT >= 240) && (LCD_DEPTH >= 16)
snake2_header1.320x240x16.bmp snake2_header1.320x240x16.bmp
snake2_header2.320x240x16.bmp snake2_header2.320x240x16.bmp
snake2_left.320x240x16.bmp snake2_left.320x240x16.bmp

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View file

@ -47,8 +47,19 @@ PLUGIN_HEADER
#define BMPWIDTH_snake2_header BMPWIDTH_snake2_header1 #define BMPWIDTH_snake2_header BMPWIDTH_snake2_header1
#endif #endif
#if (LCD_WIDTH >= 640) && (LCD_HEIGHT >= 480)
#if (LCD_WIDTH >= 320) && (LCD_HEIGHT >= 240) #define MULTIPLIER 20 /*Modifier for porting on other screens*/
#define MODIFIER_1 20
#define MODIFIER_2 16
#define CENTER_X 40
#define CENTER_Y 110
#define TOP_X1 68 /* x-coord of the upperleft item (game type) */
#define TOP_X2 562 /* x-coord of the upperright item (maze type) */
#define TOP_X3 84 /* x-coord of the lowerleft item (speed) */
#define TOP_X4 548 /* x-coord of the lowerright item (hi-score) */
#define TOP_Y1 8 /* y-coord of the top row of items */
#define TOP_Y2 50 /* y-coord of the bottom row of items */
#elif (LCD_WIDTH >= 320) && (LCD_HEIGHT >= 240)
#define MULTIPLIER 10 /*Modifier for porting on other screens*/ #define MULTIPLIER 10 /*Modifier for porting on other screens*/
#define MODIFIER_1 10 #define MODIFIER_1 10
#define MODIFIER_2 8 #define MODIFIER_2 8