Change-Id: Ic82c74b31b599b9c604962da94038a8ae628aa50
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
ec.getDevice().getRAM().getSize().setUnit("MiB"); //$NON-NLS-1$
ec.getDevice().getRAM().getSize().setValue(newVM.ramSize);
- if (newVM.maxTouchCount > 0) {
+ if (newVM.maxTouchCount >= 0) {
ec.getDevice().setTouch(factory.createTouchType());
ec.getDevice().getTouch().setMaxTouchPoint(newVM.maxTouchCount);
}
public void getLaunchArgument(LaunchConfig config, VMProperty property) {
TouchType touchType = property.getConfiguration().getDevice()
.getTouch();
- if (touchType != null) {
+ if (touchType != null && touchType.getMaxTouchPoint() > 0) {
config.addVariable(OPTION_KEY.VAR_MAX_POINT,
String.valueOf(touchType.getMaxTouchPoint()));
config.addQemuOption("-device", "virtio-touchscreen-pci,max_point=" //$NON-NLS-1$ //$NON-NLS-2$