diff options
author | David 'Digit' Turner <digit@android.com> | 2011-03-25 16:18:58 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-03-25 16:18:58 +0100 |
commit | 50142ee2ba636acb48ef92776770bd3270d7bf9c (patch) | |
tree | 2d1abeac2a843acaec166b5ea6cc9114212d70f2 /android | |
parent | 7d3a6b4096f0295c213e1f0662107ebfd2a38a06 (diff) | |
download | external_qemu-50142ee2ba636acb48ef92776770bd3270d7bf9c.zip external_qemu-50142ee2ba636acb48ef92776770bd3270d7bf9c.tar.gz external_qemu-50142ee2ba636acb48ef92776770bd3270d7bf9c.tar.bz2 |
Fix framebuffer width/height computation.
This patch fixes a bug in the skin parsing code that computes the
dimensions of the emulated framebuffer. The bug had the following
symptoms:
- The vertical framebuffer size reported by the 'events' device
was always 640 (the default), independent of the skin's
dimensions and emulated 'framebuffer' device dimensions.
As such, all touch event Y coordinates were scaled by the
system by 480/640 when running inside a HVGA screen.
Change-Id: I8c67f011ee3929ef25cbf2c858ee800f277c516c
Diffstat (limited to 'android')
-rw-r--r-- | android/main-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/main-common.c b/android/main-common.c index 9cb97f8..b237116 100644 --- a/android/main-common.c +++ b/android/main-common.c @@ -446,9 +446,9 @@ FOUND_SKIN: if (n == NULL) { n = aconfig_find(root, "parts"); if (n != NULL) { - n = aconfig_find(root, "device"); + n = aconfig_find(n, "device"); if (n != NULL) { - n = aconfig_find(root, "display"); + n = aconfig_find(n, "display"); } } } |