diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-07-21 04:22:19 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-07-21 04:22:19 +0000 |
commit | 83cf0df5634eff56559af3347e4959cafe5719c8 (patch) | |
tree | fb5dc285921637bce80d60561444ea713ae7d08e /apps | |
parent | 70deae01ffd67ec350e7f36bccfd0cf53265b5ef (diff) | |
download | rockbox-83cf0df5634eff56559af3347e4959cafe5719c8.tar.gz rockbox-83cf0df5634eff56559af3347e4959cafe5719c8.zip |
Snake2: Add support for 640x480 screens
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21991 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/bitmaps/native/SOURCES | 8 | ||||
-rw-r--r-- | apps/plugins/bitmaps/native/snake2_bottom.640x480x16.bmp | bin | 0 -> 38454 bytes | |||
-rw-r--r-- | apps/plugins/bitmaps/native/snake2_header1.640x480x16.bmp | bin | 0 -> 145974 bytes | |||
-rw-r--r-- | apps/plugins/bitmaps/native/snake2_header2.640x480x16.bmp | bin | 0 -> 145974 bytes | |||
-rw-r--r-- | apps/plugins/bitmaps/native/snake2_left.640x480x16.bmp | bin | 0 -> 23094 bytes | |||
-rw-r--r-- | apps/plugins/bitmaps/native/snake2_right.640x480x16.bmp | bin | 0 -> 23094 bytes | |||
-rw-r--r-- | apps/plugins/snake2.c | 15 |
7 files changed, 20 insertions, 3 deletions
diff --git a/apps/plugins/bitmaps/native/SOURCES b/apps/plugins/bitmaps/native/SOURCES index 8c652b2fdf..75fe5c04b1 100644 --- a/apps/plugins/bitmaps/native/SOURCES +++ b/apps/plugins/bitmaps/native/SOURCES | |||
@@ -476,7 +476,13 @@ rockpaint_hsvrgb.8x10x24.bmp | |||
476 | #endif | 476 | #endif |
477 | 477 | ||
478 | /* Snake2 */ | 478 | /* Snake2 */ |
479 | #if (LCD_WIDTH >= 320) && (LCD_HEIGHT >= 240) && (LCD_DEPTH >= 16) | 479 | #if (LCD_WIDTH >= 640) && (LCD_HEIGHT >= 480) && (LCD_DEPTH >= 16) |
480 | snake2_header1.640x480x16.bmp | ||
481 | snake2_header2.640x480x16.bmp | ||
482 | snake2_left.640x480x16.bmp | ||
483 | snake2_right.640x480x16.bmp | ||
484 | snake2_bottom.640x480x16.bmp | ||
485 | #elif (LCD_WIDTH >= 320) && (LCD_HEIGHT >= 240) && (LCD_DEPTH >= 16) | ||
480 | snake2_header1.320x240x16.bmp | 486 | snake2_header1.320x240x16.bmp |
481 | snake2_header2.320x240x16.bmp | 487 | snake2_header2.320x240x16.bmp |
482 | snake2_left.320x240x16.bmp | 488 | 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 0000000000..bc4a977ca8 --- /dev/null +++ b/apps/plugins/bitmaps/native/snake2_bottom.640x480x16.bmp | |||
Binary files 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 0000000000..4b55f80fae --- /dev/null +++ b/apps/plugins/bitmaps/native/snake2_header1.640x480x16.bmp | |||
Binary files 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 0000000000..4619264b99 --- /dev/null +++ b/apps/plugins/bitmaps/native/snake2_header2.640x480x16.bmp | |||
Binary files 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 0000000000..b3b5a8d428 --- /dev/null +++ b/apps/plugins/bitmaps/native/snake2_left.640x480x16.bmp | |||
Binary files 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 0000000000..85e17ff758 --- /dev/null +++ b/apps/plugins/bitmaps/native/snake2_right.640x480x16.bmp | |||
Binary files differ | |||
diff --git a/apps/plugins/snake2.c b/apps/plugins/snake2.c index 67678f5e03..771e385099 100644 --- a/apps/plugins/snake2.c +++ b/apps/plugins/snake2.c | |||
@@ -47,8 +47,19 @@ PLUGIN_HEADER | |||
47 | #define BMPWIDTH_snake2_header BMPWIDTH_snake2_header1 | 47 | #define BMPWIDTH_snake2_header BMPWIDTH_snake2_header1 |
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | 50 | #if (LCD_WIDTH >= 640) && (LCD_HEIGHT >= 480) | |
51 | #if (LCD_WIDTH >= 320) && (LCD_HEIGHT >= 240) | 51 | #define MULTIPLIER 20 /*Modifier for porting on other screens*/ |
52 | #define MODIFIER_1 20 | ||
53 | #define MODIFIER_2 16 | ||
54 | #define CENTER_X 40 | ||
55 | #define CENTER_Y 110 | ||
56 | #define TOP_X1 68 /* x-coord of the upperleft item (game type) */ | ||
57 | #define TOP_X2 562 /* x-coord of the upperright item (maze type) */ | ||
58 | #define TOP_X3 84 /* x-coord of the lowerleft item (speed) */ | ||
59 | #define TOP_X4 548 /* x-coord of the lowerright item (hi-score) */ | ||
60 | #define TOP_Y1 8 /* y-coord of the top row of items */ | ||
61 | #define TOP_Y2 50 /* y-coord of the bottom row of items */ | ||
62 | #elif (LCD_WIDTH >= 320) && (LCD_HEIGHT >= 240) | ||
52 | #define MULTIPLIER 10 /*Modifier for porting on other screens*/ | 63 | #define MULTIPLIER 10 /*Modifier for porting on other screens*/ |
53 | #define MODIFIER_1 10 | 64 | #define MODIFIER_1 10 |
54 | #define MODIFIER_2 8 | 65 | #define MODIFIER_2 8 |