diff options
author | David 'Digit' Turner <digit@android.com> | 2011-05-26 15:50:43 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-06-17 16:41:38 +0200 |
commit | 7e48eceb9caa7eeae31461c0ada5ff5b4286d323 (patch) | |
tree | c2399a742a48bdd70ae5546082beffeb75ead747 /android/skin/window.h | |
parent | a403d8a56953e68ea14f6bc5b28c8e667f0af267 (diff) | |
download | external_qemu-7e48eceb9caa7eeae31461c0ada5ff5b4286d323.zip external_qemu-7e48eceb9caa7eeae31461c0ada5ff5b4286d323.tar.gz external_qemu-7e48eceb9caa7eeae31461c0ada5ff5b4286d323.tar.bz2 |
Auto-adjust scale and window position when needed.
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: I8e5a624446d064038b5b9ad16556db8328244906
Diffstat (limited to 'android/skin/window.h')
-rw-r--r-- | android/skin/window.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/skin/window.h b/android/skin/window.h index 3e92e40..5ba90f5 100644 --- a/android/skin/window.h +++ b/android/skin/window.h @@ -18,6 +18,11 @@ typedef struct SkinWindow SkinWindow; +/* Note: if scale is <= 0, we interpret this as 'auto-detect'. + * The behaviour is to use 1.0 by default, unless the resulting + * window is too large, in which case the window will automatically + * be resized to fit the screen. + */ extern SkinWindow* skin_window_create( SkinLayout* layout, int x, int y, |