maru_vga : removed the unnecessary code
authorjinhyung.jo <jinhyung.jo@samsung.com>
Mon, 22 Jul 2013 06:37:35 +0000 (15:37 +0900)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Mon, 22 Jul 2013 06:37:35 +0000 (15:37 +0900)
Now the brightness processing is handled by other source(maru_sdl.c or maru_shm.c)

Change-Id: I8afc09dc6dc15877030062b72d5e96d7fdb1203f
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
tizen/src/hw/maru_vga.c

index 365e7ebf4533819f9d56555ee1e2c18689153588..13c86792f07fa719d08c650679228d003912f853 100644 (file)
 
 #include <pthread.h>
 
+#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__);
 }