diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-08-19 00:26:06 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-08-19 00:26:06 +0000 |
commit | caf20113116b1b6668804969b70b016146ee1103 (patch) | |
tree | 3773d72bb30b5c252563a02f479c53a1ac7a7a4b /firmware/target/mips | |
parent | fd0f742cf2e0ce5bbb52b54de91f64dba7f321c0 (diff) |
Onda's: add touchscreen boot menu for targets without/not much physical buttons (VX777)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22416 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c b/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c index 917a3bb06e..3218e9b5f7 100644 --- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c +++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/sadc-onda_vx747.c @@ -182,6 +182,9 @@ int button_read_device(int *data) if(cur_touch != 0 && pen_down) { ret |= touchscreen_to_pixels(cur_touch >> 16, cur_touch & 0xFFFF, data); +#if CONFIG_ORIENTATION == SCREEN_LANDSCAPE + *data = (*data & 0xFFFF) | ((LCD_HEIGHT - (*data >> 16)) << 16); +#endif if( UNLIKELY(!is_backlight_on(true)) ) *data = 0; |