Fix touch emulation for tools_r10 emulator.
There is a bug in the previous commit because the values of the
android_display_width and android_display_height variables are not
properly initialized when events_dev_init() is called.
The variables contain their default values (640 and 480) instead
of anything specific to the device's skin/emulated LCD.
The result is that touch emulation doesn't work well if the screen
is not exactly 640x80, because reported touch events are then
incorrectly scaled.
NOTE: The problem doesn't exist in the master branch, which
fixed the issue with a different patch, which takes care
of the core/ui separation work to do stuff the right way(TM).
This adds a tools_r10-specific patch to fix the issue.
Change-Id: Idc1902db5d1b2c596aadc352e62c6523922d7a20
3 files changed