public void getLaunchArgument(LaunchConfig config, VMProperty property)
throws VMWorkerException {
+ if (islesserThan(property.getImageVersion(), "2.3.2")) {
+ return;
+ }
+
boolean useDirectRendering;
- if (checkOnOrEmpty(property.getPropertyValue().getAdvancedOptionSubValue(
- "displayMode", "qtEnable"))) { //$NON-NLS-1$ //$NON-NLS-2$
- useDirectRendering = true;
+ if (property.getPropertyValue().baseImage.isItemExist("displayMode")) {
+ if (checkOnOrEmpty(property.getPropertyValue().getAdvancedOptionSubValue(
+ "displayMode", "qtEnable"))) { //$NON-NLS-1$ //$NON-NLS-2$
+ useDirectRendering = true;
+
+ } else {
+ useDirectRendering = false;
+ }
} else {
- useDirectRendering = false;
+ // if a user cannot control option in UI, set true (default)
+ useDirectRendering = true;
}
if (useDirectRendering) {
- if (isGreaterThanOrEqualTo(property.getImageVersion(), "2.3.2")) {
- if (RemoteOption.isRemoteMode(property)) {
- return;
- }
+ if (RemoteOption.isRemoteMode(property)) {
+ return;
}
String rendering = null;
+ ",dpi=" + varForm(OPTION_KEY.VAR_DISPLAY_PIXEL_DENSITY));
} else {
- if (islesserThan(property.getImageVersion(), "2.3.2")) {
- // No option is required for java skin under version 2.3.2.
- return;
- }
if (EmulatorManager.isMac()) {
config.addQemuOption(DISPLAY, MARU_SHM);