From f0af1483c5465ae7cfe44227769a95b1d645263f Mon Sep 17 00:00:00 2001 From: "jinhyung.jo" Date: Mon, 22 Jul 2013 15:37:35 +0900 Subject: [PATCH] maru_vga : removed the unnecessary code Now the brightness processing is handled by other source(maru_sdl.c or maru_shm.c) Change-Id: I8afc09dc6dc15877030062b72d5e96d7fdb1203f Signed-off-by: Jinhyung Jo --- tizen/src/hw/maru_vga.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/tizen/src/hw/maru_vga.c b/tizen/src/hw/maru_vga.c index 365e7eb..13c8679 100644 --- a/tizen/src/hw/maru_vga.c +++ b/tizen/src/hw/maru_vga.c @@ -42,11 +42,9 @@ #include +#define MARU_VGA #include "maru_common.h" #include "maru_vga_int.h" -#include "maru_brightness.h" -#include "maru_overlay.h" -#include "emul_state.h" #include "debug_ch.h" MULTI_DEBUG_CHANNEL(qemu, maru_vga); @@ -85,8 +83,6 @@ MULTI_DEBUG_CHANNEL(qemu, maru_vga); #define GET_PLANE(data, p) (((data) >> ((p) * 8)) & 0xff) #endif -#define MARU_VGA - static const uint32_t mask16[16] = { PAT(0x00000000), PAT(0x000000ff), @@ -968,6 +964,7 @@ static void vga_draw_graphic(VGACommonState *s, int full_update) s->last_depth != depth) { if (depth == 32 || (depth == 16 && !byteswap)) { #ifdef MARU_VGA /* create new sufrace by g_new0 in MARU VGA */ + TRACE("create the display surface\n"); surface = qemu_create_displaysurface(disp_width, height); #else /* MARU_VGA */ surface = qemu_create_displaysurface_from(disp_width, @@ -1191,11 +1188,6 @@ static void vga_update_display(void *opaque) s->cursor_blink_time = qemu_get_clock_ms(vm_clock); full_update = 1; } - if (brightness_off) { - full_update = 1; - vga_draw_blank(s, full_update); - return; - } switch(graphic_mode) { case GMODE_TEXT: vga_draw_text(s, full_update); @@ -1459,9 +1451,11 @@ void maru_vga_common_init(VGACommonState *s) break; } vga_dirty_log_start(s); + TRACE("%s\n", __func__); } void maru_vga_common_fini(void) { /* do nothing */ + TRACE("%s\n", __func__); } -- 2.7.4