summaryrefslogtreecommitdiff
path: root/apps/plugins/invadrox.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-05-23 17:30:58 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-07-13 22:01:33 +0100
commit4c60bc9e681865fcfc149775a1ed7ccd2613d5bf (patch)
tree99f8d91af2c171cf3843f0c14d41a20d9dc29c4f /apps/plugins/invadrox.c
parent3abb7c5dd5be2ec6744bfc0a80967b20f1b59e30 (diff)
downloadrockbox-4c60bc9e681865fcfc149775a1ed7ccd2613d5bf.tar.gz
rockbox-4c60bc9e681865fcfc149775a1ed7ccd2613d5bf.zip
New port: Shanling Q1 native
- Audio playback works - Touchscreen and buttons work - Bootloader works and is capable of dual boot - Plugins are working - Cabbiev2 theme has been ported - Stable for general usage Thanks to Marc Aarts for porting Cabbiev2 and plugin bitmaps. There's a few minor known issues: - Bootloader must be installed manually using 'usbboot' as there is no support in jztool yet. - Keymaps may be lacking, need further testing and feedback. - Some plugins may not be fully adapted to the screen size and could benefit from further tweaking. - LCD shows abnormal effects under some circumstances: for example, after viewing a mostly black screen an afterimage appears briefly when going back to a brightly-lit screen. Sudden power-off without proper shutdown of the backlight causes a "dissolving" effect. - CW2015 battery reporting driver is buggy, and disabled for now. Battery reporting is currently voltage-based using the AXP192. Change-Id: I635e83f02a880192c5a82cb0861ad3a61c137c3a
Diffstat (limited to 'apps/plugins/invadrox.c')
-rw-r--r--apps/plugins/invadrox.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/plugins/invadrox.c b/apps/plugins/invadrox.c
index c28ab7e830..5eedb6ffc5 100644
--- a/apps/plugins/invadrox.c
+++ b/apps/plugins/invadrox.c
@@ -296,6 +296,9 @@ CONFIG_KEYPAD == MROBE500_PAD
296#define RIGHT BUTTON_RIGHT 296#define RIGHT BUTTON_RIGHT
297#define FIRE BUTTON_SELECT 297#define FIRE BUTTON_SELECT
298 298
299#elif CONFIG_KEYPAD == SHANLING_Q1_PAD
300/* use touchscreen */
301
299#else 302#else
300 #error INVADROX: Unsupported keypad 303 #error INVADROX: Unsupported keypad
301#endif 304#endif
@@ -648,6 +651,23 @@ CONFIG_KEYPAD == MROBE500_PAD
648#define LIVES_X 8 651#define LIVES_X 8
649#define MAX_Y 15 652#define MAX_Y 15
650 653
654#elif (LCD_WIDTH == 360) && (LCD_HEIGHT == 400)
655
656/* Shanling Q1
657 */
658#define ARCADISH_GRAPHICS
659#define PLAYFIELD_X 32
660#define SHIP_Y (PLAYFIELD_Y - 3 * SHIP_HEIGHT)
661#define ALIEN_START_Y (UFO_Y + 3 * ALIEN_HEIGHT)
662/* Redefine SCORE_Y */
663#undef SCORE_Y
664#define SCORE_Y 80
665#define SCORENUM_X (PLAYFIELD_X + NUMBERS_WIDTH)
666#define SCORENUM_Y SCORE_Y + (2 * (FONT_HEIGHT + 1) + 1)
667#define HISCORENUM_X (LCD_WIDTH - PLAYFIELD_X - 1 - 6 * NUMBERS_WIDTH - 5 * NUM_SPACING)
668#define SHIELD_Y (PLAYFIELD_Y - 6 * SHIP_HEIGHT)
669#define LIVES_X 10
670#define MAX_Y 18
651 671
652#else 672#else
653 #error INVADROX: Unsupported LCD type 673 #error INVADROX: Unsupported LCD type