From a324171fff884c9fff0948ffb8bbb4268768f7bb Mon Sep 17 00:00:00 2001 From: "jinhyung.jo" Date: Mon, 22 Jul 2013 15:51:37 +0900 Subject: [PATCH] VIGS : removed the brightness code Now the brightness processing is handled by other source(maru_sdl.c or maru_shm.c) Change-Id: I1788c610e17e2b02c52ca20f47a7b90969a0816b Signed-off-by: Jinhyung Jo --- hw/vigs_server.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/hw/vigs_server.c b/hw/vigs_server.c index e02c39a..317f78a 100644 --- a/hw/vigs_server.c +++ b/hw/vigs_server.c @@ -4,9 +4,6 @@ #include "vigs_backend.h" #include "vigs_surface.h" #include "vigs_utils.h" -#ifdef CONFIG_MARU -#include "../tizen/src/hw/maru_brightness.h" -#endif static void vigs_server_surface_destroy_func(gpointer data) { @@ -489,22 +486,7 @@ void vigs_server_update_display(struct vigs_server *server) switch (root_sfc->format) { case vigsp_surface_bgrx8888: case vigsp_surface_bgra8888: -#ifdef CONFIG_MARU - if (brightness_level < BRIGHTNESS_MAX) { - uint32_t level = - brightness_off ? 0 : brightness_tbl[brightness_level]; - for (j = 0; j < root_sfc->ws_sfc->width; ++j) { - *dst++ = ((uint32_t)(*src++) * level) >> 8; - *dst++ = ((uint32_t)(*src++) * level) >> 8; - *dst++ = ((uint32_t)(*src++) * level) >> 8; - *dst++ = ((uint32_t)(*src++) * level) >> 8; - } - } else { -#endif memcpy(dst, src, root_sfc->ws_sfc->width * 4); -#ifdef CONFIG_MARU - } -#endif break; default: assert(false); -- 2.7.4