aboutsummaryrefslogtreecommitdiffstats
path: root/vl-android.c
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2012-05-18 12:19:32 -0700
committerVladimir Chtchetkine <vchtchetkine@google.com>2012-05-18 12:19:32 -0700
commit035f805e44a2a5ea556e425584060fad1f4230b6 (patch)
treefd025e007940f3e8087302a8ae080313c6251987 /vl-android.c
parent86daf2d663697d86d4c20cf571c3c4b66c67d1a5 (diff)
downloadexternal_qemu-035f805e44a2a5ea556e425584060fad1f4230b6.zip
external_qemu-035f805e44a2a5ea556e425584060fad1f4230b6.tar.gz
external_qemu-035f805e44a2a5ea556e425584060fad1f4230b6.tar.bz2
Use -qemu -lcd-density parameter for setting qemu.sf.lcd_density boot property.
Change-Id: Ibfd85c3e351caef89ae57630c824255f29f47914
Diffstat (limited to 'vl-android.c')
-rw-r--r--vl-android.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/vl-android.c b/vl-android.c
index 7b661b6..c566d92 100644
--- a/vl-android.c
+++ b/vl-android.c
@@ -3782,6 +3782,15 @@ int main(int argc, char **argv, char **envp)
}
}
+ /* Set LCD density (if required by -qemu, and AVD is missing it. */
+ if (android_op_lcd_density && !android_hw->hw_lcd_density) {
+ int density;
+ if (parse_int(android_op_lcd_density, &density) || density <= 0) {
+ PANIC("-lcd-density : %d", density);
+ }
+ hwLcd_setBootProperty(density);
+ }
+
/* Initialize camera emulation. */
android_camera_service_init();