[Title] added state field
authorgiwoong.kim <giwoong.kim@samsung.com>
Fri, 16 Mar 2012 09:26:58 +0000 (18:26 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Fri, 16 Mar 2012 09:26:58 +0000 (18:26 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

tizen/src/emul_state.c
tizen/src/emul_state.h

index c6a6062..c1ba523 100644 (file)
@@ -37,21 +37,45 @@ MULTI_DEBUG_CHANNEL(qemu, emul_state);
 
 
 static emulator_config_info _emul_info;
+static emulator_config_state _emul_state;
 
+/* lcd screen size */
 void set_emul_lcd_size(int width, int height)
 {
-    _emul_info.resolution_w = width;
-    _emul_info.resolution_h = height;
+    _emul_info.lcd_size_w = width;
+    _emul_info.lcd_size_h = height;
 
-   INFO("emulator graphic resolution %dx%d\n", _emul_info.resolution_w,  _emul_info.resolution_h);
+   INFO("emulator graphic resolution %dx%d\n", _emul_info.lcd_size_w,  _emul_info.lcd_size_h);
 }
 
 int get_emul_lcd_width(void)
 {
-    return _emul_info.resolution_w;
+    return _emul_info.lcd_size_w;
 }
 
 int get_emul_lcd_height(void)
 {
-    return _emul_info.resolution_h;
+    return _emul_info.lcd_size_h;
+}
+
+/* emulator window scale */
+void set_emul_win_scale(int scale)
+{
+    _emul_state.scale = scale;
+}
+
+int get_emul_win_scale(void)
+{
+    return _emul_state.scale;
+}
+
+/* emulator rotation */
+void set_emul_rotation(int rotation)
+{
+    _emul_state.rotation = rotation;
+}
+
+int get_emul_rotation(void)
+{
+    return _emul_state.rotation;
 }
index 6db3e07..4ed2fc7 100644 (file)
 
 
 typedef  struct emulator_config_info {
-    int resolution_w;
-    int resolution_h;
+    int lcd_size_w;
+    int lcd_size_h;
+    //TODO:
 } emulator_config_info;
 
-struct emulator_config_state {
+typedef struct emulator_config_state {
+    int scale;
+    int rotation;
     //TODO:
-};
+} emulator_config_state;
 
 
 /* setter */
 void set_emul_lcd_size(int width, int height);
+void set_emul_win_scale(int scale);
+void set_emul_rotation(int scale);
 
 /* getter */
 int get_emul_lcd_width(void);
 int get_emul_lcd_height(void);
+int get_emul_win_scale(void);
+int get_emul_rotation(void);
 
 
 #endif /* __EMUL_STATE_H__ */