diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-07-16 12:54:43 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-07-16 12:54:43 +0000 |
commit | e3b2f4ffeda7b804a16125e26918c7cdbcecdac9 (patch) | |
tree | fb4bb916ced47e43c942478fca66495d3b803238 /firmware/target/mips/ingenic_jz47xx/onda_vx747/button-onda_vx747.c | |
parent | ffddab1e664ee9c0a1aec69f02a8ebfaeba3fb3e (diff) | |
download | rockbox-e3b2f4ffeda7b804a16125e26918c7cdbcecdac9.tar.gz rockbox-e3b2f4ffeda7b804a16125e26918c7cdbcecdac9.zip |
Switch screen 90 degrees clockwise
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18069 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/onda_vx747/button-onda_vx747.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/onda_vx747/button-onda_vx747.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/button-onda_vx747.c b/firmware/target/mips/ingenic_jz47xx/onda_vx747/button-onda_vx747.c index 950fc51d69..b3c0a5fb64 100644 --- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/button-onda_vx747.c +++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/button-onda_vx747.c | |||
@@ -67,13 +67,12 @@ static int touch_to_pixels(short x, short y) | |||
67 | y -= 300; | 67 | y -= 300; |
68 | 68 | ||
69 | /* X & Y are switched */ | 69 | /* X & Y are switched */ |
70 | x /= 3200 / LCD_HEIGHT; | 70 | x /= 3200 / LCD_WIDTH; |
71 | y /= 3600 / LCD_WIDTH; | 71 | y /= 3600 / LCD_HEIGHT; |
72 | 72 | ||
73 | x = LCD_HEIGHT - x; | 73 | y = LCD_HEIGHT - y; |
74 | y = LCD_WIDTH - y; | ||
75 | 74 | ||
76 | return (y << 16) | x; | 75 | return (x << 16) | y; |
77 | } | 76 | } |
78 | 77 | ||
79 | int button_read_device(int *data) | 78 | int button_read_device(int *data) |