display: blank guide appearance time is moved up
authorGiWoong Kim <giwoong.kim@samsung.com>
Tue, 10 Sep 2013 04:42:46 +0000 (13:42 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Tue, 10 Sep 2013 04:44:54 +0000 (13:44 +0900)
Change-Id: I4c95a7614d1b592e52c837985dc46ca6d34b179b
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/maru_sdl.c
tizen/src/maru_shm.c

index 430d3b78c0a54e1af1049c6ce76bb853374717d1..597bc6eb51053887ca975cf82607f09a41605b8d 100644 (file)
@@ -63,7 +63,7 @@ static int sdl_alteration;
 static unsigned int sdl_skip_update;
 static unsigned int sdl_skip_count;
 static unsigned int blank_cnt;
-#define MAX_BLANK_FRAME_CNT 120
+#define MAX_BLANK_FRAME_CNT 10
 #define BLANK_GUIDE_IMAGE_PATH "../images/"
 #define BLANK_GUIDE_IMAGE_NAME "blank-guide.png"
 
@@ -489,11 +489,9 @@ static void qemu_ds_sdl_refresh(DisplayChangeListener *dcl)
             INFO("draw a blank guide image\n");
 
             SDL_Surface *guide = get_blank_guide_image();
-            if (guide != NULL) {
-                int dst_w = 0;
-                int dst_h = 0;
-                int dst_x = 0;
-                int dst_y = 0;
+            if (guide != NULL && get_emul_skin_enable() == 1) {
+                int dst_x = 0; int dst_y = 0;
+                int dst_w = 0; int dst_h = 0;
 
                 if (current_scale_factor != 1.0) {
                     /* guide image scaling */
index 14f38b5991903e47389a8644c300ac4c8696406c..ae0c4fa2d61986bef1a963320b6d78aa3546dec9 100644 (file)
@@ -49,7 +49,7 @@ static int skin_shmid;
 static int shm_skip_update;
 static int shm_skip_count;
 static int blank_cnt;
-#define MAX_BLANK_FRAME_CNT 120
+#define MAX_BLANK_FRAME_CNT 10
 
 extern pthread_mutex_t mutex_draw_display;
 extern int draw_display_state;
@@ -146,7 +146,9 @@ static void qemu_ds_shm_refresh(DisplayChangeListener *dcl)
             /* draw guide image */
             INFO("draw a blank guide image\n");
 
-            notify_draw_blank_guide();
+            if (get_emul_skin_enable() == 1) {
+                notify_draw_blank_guide();
+            }
         } else if (blank_cnt == 0) {
             INFO("skipping of the display updating is started\n");
         }