[Title] qemu refresh when scaling
authorgiwoong.kim <giwoong.kim@samsung.com>
Sat, 17 Mar 2012 05:48:16 +0000 (14:48 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Sat, 17 Mar 2012 05:48:16 +0000 (14:48 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

tizen/src/emul_state.h [changed mode: 0644->0755]
tizen/src/emulator.h [changed mode: 0644->0755]
tizen/src/skin/maruskin_operation.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index c8bee0d..346f8cb
 #ifndef __EMUL_STATE_H__
 #define __EMUL_STATE_H__
 
+enum {
+    ROTATION_PORTRAIT = 0,
+    ROTATION_LANDSCAPE = 1,
+    ROTATION_REVERSE_PORTRAIT = 2,
+    ROTATION_REVERSE_LANDSCAPE = 3,
+};
+
 
 typedef  struct emulator_config_info {
     int lcd_size_w;
old mode 100644 (file)
new mode 100755 (executable)
index d62a41a..e1a13e7
 #define __EMULATOR_H__
 
 
-enum {
-    ROTATION_PORTRAIT = 0,
-    ROTATION_LANDSCAPE = 1,
-    ROTATION_REVERSE_PORTRAIT = 2,
-    ROTATION_REVERSE_LANDSCAPE = 3,
-};
-
-
 int get_emulator_condition(void);
 void set_emulator_condition(int state);
 void exit_emulator(void);
old mode 100644 (file)
new mode 100755 (executable)
index b95b673..b816e36
@@ -53,20 +53,6 @@ enum {
 };
 
 enum {
-    ROTATION_PORTRAIT = 0,
-    ROTATION_LANDSCAPE = 1,
-    ROTATION_REVERSE_PORTRAIT = 2,
-    ROTATION_REVERSE_LANDSCAPE = 3,
-};
-
-enum {
-    SCALE_ONE = 1,
-    SCALE_THREE_QUARTERS = 2,
-    SCALE_HALF = 3,
-    SCALE_ONE_QUARTER = 4,
-};
-
-enum {
     MOUSE_DOWN = 1,
     MOUSE_UP = 2,
     MOUSE_DRAG = 3,
@@ -144,8 +130,9 @@ void do_hardkey_event( int event_type, int keycode ) {
 void do_scale_event( int event_type) {
     INFO( "do_scale_event event_type:%d", event_type);
 
-
-    //TODO: qemu refresh
+    //qemu refresh
+    vga_hw_invalidate();
+    vga_hw_update();
 
     set_emul_win_scale(event_type);
 }