jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=c507f56110fd9b4442952c98f0e28b905aacf53a

commit c507f56110fd9b4442952c98f0e28b905aacf53a
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Wed Aug 24 14:40:20 2016 +0900

    ecore_x: Early check image bpp based on depth
    
    This fixes argb windows transparency in E software compositor.
    
    My current problem is that I have no idea what changed, why this
    is needed now, and how things could actually work before.
    
    Fixes T4389
    
    @fix
---
 src/lib/ecore_x/xlib/ecore_x_image.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lib/ecore_x/xlib/ecore_x_image.c 
b/src/lib/ecore_x/xlib/ecore_x_image.c
index 6ce8919..016323c 100644
--- a/src/lib/ecore_x/xlib/ecore_x_image.c
+++ b/src/lib/ecore_x/xlib/ecore_x_image.c
@@ -194,6 +194,10 @@ ecore_x_image_new(int w,
    im->h = h;
    im->vis = vis;
    im->depth = depth;
+   if (depth <= 8) im->bpp = 1;
+   else if (depth <= 16) im->bpp = 2;
+   else if (depth <= 24) im->bpp = 3;
+   else im->bpp = 4;
    _ecore_x_image_shm_check();
    im->shm = _ecore_x_image_shm_can;
    return im;

-- 


Reply via email to