display: modified some variable & function names 51/12851/1
authorGiWoong Kim <giwoong.kim@samsung.com>
Fri, 22 Nov 2013 02:06:37 +0000 (11:06 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Fri, 22 Nov 2013 02:06:37 +0000 (11:06 +0900)
In Qemu, to avoid a confusing about screen size,
I changed some variable names and function names.
(set_emul_lcd_size -> set_emul_resolution)

Change-Id: I567291504aab16f04255d16351fb18e40223e1b6
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/emul_state.c
tizen/src/emul_state.h
tizen/src/emulator.c
tizen/src/maru_finger.c
tizen/src/maru_sdl.c
tizen/src/maru_shm.c
tizen/src/skin/maruskin_operation.c

index 147dea9..9f16e6b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Emulator
+ * Emulator State Information
  *
  * Copyright (C) 2011 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  *
@@ -56,24 +56,24 @@ int get_emul_skin_enable(void)
     return _emul_info.skin_enable;
 }
 
-/* display screen size */
-void set_emul_lcd_size(int width, int height)
+/* display screen resolution */
+void set_emul_resolution(int width, int height)
 {
-    _emul_info.lcd_size_w = width;
-    _emul_info.lcd_size_h = height;
+    _emul_info.resolution_w = width;
+    _emul_info.resolution_h = height;
 
     INFO("emulator graphic resolution : %dx%d\n",
-        _emul_info.lcd_size_w, _emul_info.lcd_size_h);
+        _emul_info.resolution_w, _emul_info.resolution_h);
 }
 
-int get_emul_lcd_width(void)
+int get_emul_resolution_width(void)
 {
-    return _emul_info.lcd_size_w;
+    return _emul_info.resolution_w;
 }
 
-int get_emul_lcd_height(void)
+int get_emul_resolution_height(void)
 {
-    return _emul_info.lcd_size_h;
+    return _emul_info.resolution_h;
 }
 
 /* sdl bits per pixel */
index 993f317..b58ee6d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Emulator
+ * Emulator State Information
  *
  * Copyright (C) 2011 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  *
@@ -82,8 +82,8 @@ enum {
 
 typedef  struct EmulatorConfigInfo {
     int skin_enable;
-    int lcd_size_w;
-    int lcd_size_h;
+    int resolution_w;
+    int resolution_h;
     int sdl_bpp;
     bool input_mouse_enable;
     bool input_touch_enable;
@@ -107,7 +107,7 @@ typedef struct EmulatorConfigState {
 
 /* setter */
 void set_emul_skin_enable(int enable);
-void set_emul_lcd_size(int width, int height);
+void set_emul_resolution(int width, int height);
 void set_emul_win_scale(double scale);
 void set_emul_sdl_bpp(int bpp);
 void set_emul_input_mouse_enable(bool on);
@@ -123,8 +123,8 @@ void set_emul_vm_name(char *vm_name);
 
 /* getter */
 int get_emul_skin_enable(void);
-int get_emul_lcd_width(void);
-int get_emul_lcd_height(void);
+int get_emul_resolution_width(void);
+int get_emul_resolution_height(void);
 double get_emul_win_scale(void);
 int get_emul_sdl_bpp(void);
 bool is_emul_input_mouse_enable(void);
index 7850cd9..08f0d39 100644 (file)
@@ -293,7 +293,7 @@ static void extract_skin_info(int skin_argc, char **skin_argv)
         }
 
         if (w != 0 && h != 0) {
-            set_emul_lcd_size(w, h);
+            set_emul_resolution(w, h);
             break;
         }
     }
index 669e3fb..c6b61c4 100644 (file)
@@ -387,8 +387,8 @@ void maru_finger_processing_2(
                 int distance_x = x - finger->x;
                 int distance_y = y - finger->y;
 
-                int current_screen_w = get_emul_lcd_width();
-                int current_screen_h = get_emul_lcd_height();
+                int current_screen_w = get_emul_resolution_width();
+                int current_screen_h = get_emul_resolution_height();
                 int temp_finger_x, temp_finger_y;
 
                 int i = 0;
index 28e4f85..571ed36 100644 (file)
@@ -249,8 +249,8 @@ static void qemu_ds_sdl_switch(DisplayChangeListener *dcl,
     }
 
     /* create surface_qemu */
-    if (console_width == get_emul_lcd_width() &&
-        console_height == get_emul_lcd_height()) {
+    if (console_width == get_emul_resolution_width() &&
+        console_height == get_emul_resolution_height()) {
         INFO("create SDL screen : (%d, %d)\n",
              console_width, console_height);
 
@@ -265,7 +265,7 @@ static void qemu_ds_sdl_switch(DisplayChangeListener *dcl,
             dpy_surface->pf.amask);
     } else {
         INFO("create blank screen : (%d, %d)\n",
-             get_emul_lcd_width(), get_emul_lcd_height());
+             get_emul_resolution_width(), get_emul_resolution_height());
 
         surface_qemu = SDL_CreateRGBSurface(
             SDL_SWSURFACE,
@@ -686,8 +686,8 @@ static void maru_sdl_resize_bh(void *opaque)
 #endif
 
     /* get current setting information and calculate screen size */
-    display_width = get_emul_lcd_width();
-    display_height = get_emul_lcd_height();
+    display_width = get_emul_resolution_width();
+    display_height = get_emul_resolution_height();
     current_scale_factor = get_emul_win_scale();
 
     short rotaton_type = get_emul_rotation();
@@ -750,7 +750,7 @@ static void maru_sdl_resize_bh(void *opaque)
     /* rearrange multi-touch finger points */
     if (get_emul_multi_touch_state()->multitouch_enable == 1 ||
             get_emul_multi_touch_state()->multitouch_enable == 2) {
-        rearrange_finger_points(get_emul_lcd_width(), get_emul_lcd_height(),
+        rearrange_finger_points(get_emul_resolution_width(), get_emul_resolution_height(),
             current_scale_factor, rotaton_type);
     }
 
@@ -812,7 +812,7 @@ void maruskin_sdl_init(uint64 swt_handle,
     INFO("register SDL environment variable. "
         "(SDL_WINDOWID = %s)\n", SDL_windowhack);
 
-    set_emul_lcd_size(display_width, display_height);
+    set_emul_resolution(display_width, display_height);
     set_emul_sdl_bpp(SDL_BPP);
     init_multi_touch_state();
 
index 261032c..5efb83c 100644 (file)
@@ -110,7 +110,7 @@ static void qemu_ds_shm_update(DisplayChangeListener *dcl,
                     surface_height(dpy_surface));
             } else {
                 int shm_size =
-                   get_emul_lcd_width() * get_emul_lcd_height() * 4;
+                   get_emul_resolution_width() * get_emul_resolution_height() * 4;
                 memset(shared_memory, 0x00, (size_t)shm_size);
             }
 
@@ -152,8 +152,8 @@ static void qemu_ds_shm_switch(DisplayChangeListener *dcl,
     INFO("qemu_ds_shm_switch : (%d, %d)\n",
         console_width, console_height);
 
-    if (console_width == get_emul_lcd_width() &&
-        console_height == get_emul_lcd_height()) {
+    if (console_width == get_emul_resolution_width() &&
+        console_height == get_emul_resolution_height()) {
         is_fit_console_size = true;
     }
 }
@@ -221,7 +221,7 @@ void maruskin_shm_init(uint64 swt_handle,
 
     INFO("maru shm init\n");
 
-    set_emul_lcd_size(display_width, display_height);
+    set_emul_resolution(display_width, display_height);
     set_emul_sdl_bpp(32);
 
     if (blank_guide_enable == true) {
@@ -230,7 +230,7 @@ void maruskin_shm_init(uint64 swt_handle,
 
     /* byte */
     int shm_size =
-        get_emul_lcd_width() * get_emul_lcd_height() * 4;
+        get_emul_resolution_width() * get_emul_resolution_height() * 4;
 
     /* base + 1 = sdb port */
     /* base + 2 = shared memory key */
index cccba80..a1d2e32 100644 (file)
@@ -407,7 +407,7 @@ QemuSurfaceInfo *get_screenshot_info(void)
         return NULL;
     }
 
-    int length = get_emul_lcd_width() * get_emul_lcd_height() * 4;
+    int length = get_emul_resolution_width() * get_emul_resolution_height() * 4;
     INFO("screenshot data length:%d\n", length);
 
     if (0 >= length) {