Set alpha on
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 24 Nov 2014 04:18:01 +0000 (13:18 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Mon, 24 Nov 2014 04:18:01 +0000 (13:18 +0900)
[model] Redwood,Kiran,B3(Wearable)
[binary_type] AP
[customer] Docomo/Orange/ATT/Open
[issue#] N/A
[problem]
[cause]
[solution]
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: Icb350d992242c88666911abf6c50d939873515ea

src/virtual_window.c

index bae5dc7..eda4edf 100644 (file)
@@ -877,7 +877,6 @@ PUBLIC void *dynamicbox_get_evas_object(const char *id, int is_gbar)
     vwin_info_t info;
     Evas_Object *rect;
     const char *engine;
-    int gl_is_turned_on = 0;
 
     if (!s_info.alloc_canvas && !s_info.alloc_canvas_with_stride && !s_info.alloc_canvas_with_pixmap) {
        s_info.alloc_canvas_with_pixmap = dlsym(RTLD_DEFAULT, "ecore_evas_gl_x11_pixmap_allocfunc_new");
@@ -948,8 +947,6 @@ PUBLIC void *dynamicbox_get_evas_object(const char *id, int is_gbar)
            info->ee = s_info.alloc_canvas_with_pixmap(NULL, 0u, 0, 0, info->w, info->h, alloc_pixmap_cb, free_pixmap_cb, info);
            if (!info->ee) {
                ErrPrint("Unable to create a ee for pixmap\n");
-           } else {
-               gl_is_turned_on = 1;
            }
        }
     }
@@ -985,13 +982,9 @@ PUBLIC void *dynamicbox_get_evas_object(const char *id, int is_gbar)
        return NULL;
     }
 
-    if (!gl_is_turned_on) {
-       pre_render_cb(info, NULL, NULL);
-       ecore_evas_alpha_set(info->ee, EINA_TRUE);
-       post_render_cb(info, NULL, NULL);
-    } else {
-       DbgPrint("opengl-x11 engine should not turn on the alpha\n");
-    }
+    pre_render_cb(info, NULL, NULL);
+    ecore_evas_alpha_set(info->ee, EINA_TRUE);
+    post_render_cb(info, NULL, NULL);
 
     ecore_evas_manual_render_set(info->ee, EINA_FALSE);
     ecore_evas_resize(info->ee, info->w, info->h);