aboutsummaryrefslogtreecommitdiffstats
path: root/android/multitouch-port.c
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2012-05-15 07:59:51 -0700
committerVladimir Chtchetkine <vchtchetkine@google.com>2012-05-15 07:59:51 -0700
commit6df71197252e119baccbe4dd060935222af4f8ba (patch)
tree7ea2d2aca6744b1b96f57905316dd2a8ee782ec5 /android/multitouch-port.c
parent86daf2d663697d86d4c20cf571c3c4b66c67d1a5 (diff)
downloadexternal_qemu-6df71197252e119baccbe4dd060935222af4f8ba.zip
external_qemu-6df71197252e119baccbe4dd060935222af4f8ba.tar.gz
external_qemu-6df71197252e119baccbe4dd060935222af4f8ba.tar.bz2
Refresh stale SdkController screen.
When MT handler gets deactivated, and then activated again, it shows a stale emulator display, since it didn't have a chance to catch up with emulator display updates. This CL ensures that entire emulator display is pushed to the device when MT handler gets activated. Change-Id: I58c1680f50e2af3e6afa0518f6bcaa3ed087638d
Diffstat (limited to 'android/multitouch-port.c')
-rw-r--r--android/multitouch-port.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/multitouch-port.c b/android/multitouch-port.c
index d872b30..faefdbf 100644
--- a/android/multitouch-port.c
+++ b/android/multitouch-port.c
@@ -260,6 +260,8 @@ _on_multitouch_port_connection(void* opaque,
if (android_hw->hw_gpu_enabled) {
android_setPostCallback(multitouch_opengles_fb_update, NULL);
}
+ /* Refresh (possibly stale) device screen. */
+ multitouch_refresh_screen();
break;
case SDKCTL_PORT_DISABLED: