aboutsummaryrefslogtreecommitdiffstats
path: root/android/qemulator.c
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-05-26 15:50:43 +0200
committerDavid 'Digit' Turner <digit@android.com>2011-08-04 13:15:27 +0200
commitfd79a9a99d1fa1b811b65db366692fee00904021 (patch)
treedc533904515cd769454f3296e0516e460f31a0e6 /android/qemulator.c
parente4a3bea51fc7b377234b5af7a6cecfd529962f2e (diff)
downloadexternal_qemu-fd79a9a99d1fa1b811b65db366692fee00904021.zip
external_qemu-fd79a9a99d1fa1b811b65db366692fee00904021.tar.gz
external_qemu-fd79a9a99d1fa1b811b65db366692fee00904021.tar.bz2
Auto-adjust scale and window position when needed.
This is a backport from master to tools_r13 This patch changes the emulator's default behaviour in two ways: - Automatically compute the window scale to ensure that the emulator's window can be displayed within the current screen. This ensures that it remains usable when emulating a large-resolution device on a small display (e.g. on a 13" laptop running at 1024x768). This check and auto-correction do not happen if you use the -scale or -dpi-monitor options. - When re-centering an out-of-focus window, ensure that the top of the window is visible (which generally includes the window's title bar). This allows the window to be easily moved or minimized by the user is needed. This fixes three bugs: http://code.google.com/p/android/issues/detail?id=16399 http://code.google.com/p/android/issues/detail?id=16398 http://code.google.com/p/android/issues/detail?id=16397 Change-Id: Ibbc3c8458bd99718e4902d0a032b154c7cff4757 Orig-Change-Id: I8e5a624446d064038b5b9ad16556db8328244906
Diffstat (limited to 'android/qemulator.c')
-rw-r--r--android/qemulator.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/android/qemulator.c b/android/qemulator.c
index b15d751..d29ee94 100644
--- a/android/qemulator.c
+++ b/android/qemulator.c
@@ -330,9 +330,6 @@ get_default_scale( AndroidOptions* opts )
if (scale == 0.0 && dpi_monitor > 0)
scale = dpi_monitor*1.0/dpi_device;
- if (scale == 0.0)
- scale = 1.0;
-
return scale;
}