From: giwoong.kim Date: Mon, 10 Sep 2012 11:41:10 +0000 (+0900) Subject: [Title] avoid unnecessary skin trimming X-Git-Tag: TizenStudio_2.0_p2.3~1328 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f96c94ebf8fe8157ac51b033897bbb49a85d9ee;p=sdk%2Femulator%2Fqemu.git [Title] avoid unnecessary skin trimming [Type] enhancement [Module] Emulator / skin [Priority] major [Jira#] N_SE-9642 [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- diff --git a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java index 8e51921..fb23c7d 100644 --- a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java +++ b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java @@ -653,7 +653,9 @@ public class EmulatorSkin { } } - SkinUtil.trimShell( shell, currentImage ); + if (keyCode != 101) { // TODO: not necessary for home key + SkinUtil.trimShell(shell, currentImage); + } KeyEventData keyEventData = new KeyEventData( KeyEventType.RELEASED.value(), keyCode, 0, 0); @@ -672,7 +674,7 @@ public class EmulatorSkin { EmulatorSkin.this.isMousePressed = true; - int keyCode = SkinUtil.getHardKeyCode( e.x, e.y, currentRotationId, currentScale ); + final int keyCode = SkinUtil.getHardKeyCode(e.x, e.y, currentRotationId, currentScale); if ( SkinUtil.UNKNOWN_KEYCODE != keyCode ) { shell.setToolTipText(null); @@ -702,8 +704,11 @@ public class EmulatorSkin { gc.dispose(); - SkinUtil.trimShell(shell, currentKeyPressedImage, - currentPressedRegion.x, currentPressedRegion.y, currentPressedRegion.width, currentPressedRegion.height); + if (keyCode != 101) { // TODO: not necessary for home key + SkinUtil.trimShell(shell, currentKeyPressedImage, + currentPressedRegion.x, currentPressedRegion.y, + currentPressedRegion.width, currentPressedRegion.height); + } currentPressedRegion = null; }