From 51ac385e1df444fbb826314cba469841fbfd9ac0 Mon Sep 17 00:00:00 2001 From: GiWoong Kim Date: Tue, 10 Sep 2013 13:42:46 +0900 Subject: [PATCH] display: blank guide appearance time is moved up Change-Id: I4c95a7614d1b592e52c837985dc46ca6d34b179b Signed-off-by: GiWoong Kim --- tizen/src/maru_sdl.c | 10 ++++------ tizen/src/maru_shm.c | 6 ++++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tizen/src/maru_sdl.c b/tizen/src/maru_sdl.c index 430d3b7..597bc6e 100644 --- a/tizen/src/maru_sdl.c +++ b/tizen/src/maru_sdl.c @@ -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 */ diff --git a/tizen/src/maru_shm.c b/tizen/src/maru_shm.c index 14f38b5..ae0c4fa 100644 --- a/tizen/src/maru_shm.c +++ b/tizen/src/maru_shm.c @@ -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"); } -- 2.7.4