From fec86eff433693768e41e7666268d767b4e762bd Mon Sep 17 00:00:00 2001 From: "giwoong.kim" Date: Fri, 16 Mar 2012 22:07:20 +0900 Subject: [PATCH] [Title] scale communicate with qemu [Type] [Module] Emulator / java [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- tizen/src/emul_state.c | 4 ++-- tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tizen/src/emul_state.c b/tizen/src/emul_state.c index e549574..3705222 100644 --- a/tizen/src/emul_state.c +++ b/tizen/src/emul_state.c @@ -62,7 +62,7 @@ int get_emul_lcd_height(void) void set_emul_win_scale(int scale) { _emul_state.scale = scale; - INFO("emulator window scale = %d", _emul_state.scale); + INFO("emulator window scale = %d\n", _emul_state.scale); } int get_emul_win_scale(void) @@ -74,7 +74,7 @@ int get_emul_win_scale(void) void set_emul_rotation(int rotation) { _emul_state.rotation = rotation; - INFO("emulator rotation = %d", _emul_state.rotation); + INFO("emulator rotation = %d\n", _emul_state.rotation); } int get_emul_rotation(void) 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 64f9bfe..bae7773 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 @@ -1013,6 +1013,8 @@ public class EmulatorSkin { int scale = (Integer) item.getData(); arrangeSkin( currentLcdWidth, currentLcdHeight, scale, currentRotationId ); + LcdStateData lcdStateData = new LcdStateData( scale, currentRotationId ); + communicator.sendToQEMU( SendCommand.CHANGE_LCD_STATE, lcdStateData ); } }; -- 2.7.4