From 83cf0df5634eff56559af3347e4959cafe5719c8 Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Tue, 21 Jul 2009 04:22:19 +0000 Subject: Snake2: Add support for 640x480 screens git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21991 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/bitmaps/native/SOURCES | 8 +++++++- .../bitmaps/native/snake2_bottom.640x480x16.bmp | Bin 0 -> 38454 bytes .../bitmaps/native/snake2_header1.640x480x16.bmp | Bin 0 -> 145974 bytes .../bitmaps/native/snake2_header2.640x480x16.bmp | Bin 0 -> 145974 bytes apps/plugins/bitmaps/native/snake2_left.640x480x16.bmp | Bin 0 -> 23094 bytes .../plugins/bitmaps/native/snake2_right.640x480x16.bmp | Bin 0 -> 23094 bytes apps/plugins/snake2.c | 15 +++++++++++++-- 7 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 apps/plugins/bitmaps/native/snake2_bottom.640x480x16.bmp create mode 100644 apps/plugins/bitmaps/native/snake2_header1.640x480x16.bmp create mode 100644 apps/plugins/bitmaps/native/snake2_header2.640x480x16.bmp create mode 100644 apps/plugins/bitmaps/native/snake2_left.640x480x16.bmp create mode 100644 apps/plugins/bitmaps/native/snake2_right.640x480x16.bmp (limited to 'apps/plugins') diff --git a/apps/plugins/bitmaps/native/SOURCES b/apps/plugins/bitmaps/native/SOURCES index 8c652b2..75fe5c0 100644 --- a/apps/plugins/bitmaps/native/SOURCES +++ b/apps/plugins/bitmaps/native/SOURCES @@ -476,7 +476,13 @@ rockpaint_hsvrgb.8x10x24.bmp #endif /* 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_header2.320x240x16.bmp snake2_left.320x240x16.bmp diff --git a/apps/plugins/bitmaps/native/snake2_bottom.640x480x16.bmp b/apps/plugins/bitmaps/native/snake2_bottom.640x480x16.bmp new file mode 100644 index 0000000..bc4a977 Binary files /dev/null and b/apps/plugins/bitmaps/native/snake2_bottom.640x480x16.bmp differ diff --git a/apps/plugins/bitmaps/native/snake2_header1.640x480x16.bmp b/apps/plugins/bitmaps/native/snake2_header1.640x480x16.bmp new file mode 100644 index 0000000..4b55f80 Binary files /dev/null and b/apps/plugins/bitmaps/native/snake2_header1.640x480x16.bmp differ diff --git a/apps/plugins/bitmaps/native/snake2_header2.640x480x16.bmp b/apps/plugins/bitmaps/native/snake2_header2.640x480x16.bmp new file mode 100644 index 0000000..4619264 Binary files /dev/null and b/apps/plugins/bitmaps/native/snake2_header2.640x480x16.bmp differ diff --git a/apps/plugins/bitmaps/native/snake2_left.640x480x16.bmp b/apps/plugins/bitmaps/native/snake2_left.640x480x16.bmp new file mode 100644 index 0000000..b3b5a8d Binary files /dev/null and b/apps/plugins/bitmaps/native/snake2_left.640x480x16.bmp differ diff --git a/apps/plugins/bitmaps/native/snake2_right.640x480x16.bmp b/apps/plugins/bitmaps/native/snake2_right.640x480x16.bmp new file mode 100644 index 0000000..85e17ff Binary files /dev/null and b/apps/plugins/bitmaps/native/snake2_right.640x480x16.bmp differ diff --git a/apps/plugins/snake2.c b/apps/plugins/snake2.c index 67678f5..771e385 100644 --- a/apps/plugins/snake2.c +++ b/apps/plugins/snake2.c @@ -47,8 +47,19 @@ PLUGIN_HEADER #define BMPWIDTH_snake2_header BMPWIDTH_snake2_header1 #endif - -#if (LCD_WIDTH >= 320) && (LCD_HEIGHT >= 240) +#if (LCD_WIDTH >= 640) && (LCD_HEIGHT >= 480) + #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 MODIFIER_1 10 #define MODIFIER_2 8 -- cgit v1.1