From: jinhyung.jo Date: Fri, 24 May 2013 06:14:15 +0000 (+0900) Subject: display : Fixed a bug that appear a white region on the LCD. X-Git-Tag: 2.2.1_release~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f6bd5b17bbac7d58f9772c089cb9dc9c3751f59;p=sdk%2Femulator%2Fqemu.git display : Fixed a bug that appear a white region on the LCD. Modified to avoid to appear a white region when screen is rotated or scaled up/down while powered off. The method is that draw ten more blank screen when the skin is rotated or scaled up/down while powered off. Signed-off-by: Jinhyung Jo --- diff --git a/tizen/src/maru_sdl.c b/tizen/src/maru_sdl.c index efeae8893a..9bb3f8d4d5 100644 --- a/tizen/src/maru_sdl.c +++ b/tizen/src/maru_sdl.c @@ -154,6 +154,7 @@ static int maru_sdl_poll_event(SDL_Event *ev) void qemu_ds_sdl_refresh(DisplayState *ds) { SDL_Event ev1, *ev = &ev1; + static uint32_t sdl_skip_count = 0; // surface may be NULL in init func. qemu_display_surface = ds->surface; @@ -169,6 +170,7 @@ void qemu_ds_sdl_refresh(DisplayState *ds) pthread_mutex_unlock(&sdl_mutex); vga_hw_invalidate(); sdl_skip_update = 0; + sdl_skip_count = 0; break; } @@ -185,11 +187,16 @@ void qemu_ds_sdl_refresh(DisplayState *ds) /* Usually, continuously updated. When the LCD is turned off, - once updates the screen for a black screen. */ + ten more updates the screen for a black screen. */ vga_hw_update(); if (brightness_off) { - sdl_skip_update = 1; + if (++sdl_skip_count > 10) { + sdl_skip_update = 1; + } else { + sdl_skip_update = 0; + } } else { + sdl_skip_count = 0; sdl_skip_update = 0; }