forked from enlightenment/efl
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
This commit is contained in:
parent
510c093602
commit
c507f56110
|
@ -194,6 +194,10 @@ ecore_x_image_new(int w,
|
||||||
im->h = h;
|
im->h = h;
|
||||||
im->vis = vis;
|
im->vis = vis;
|
||||||
im->depth = depth;
|
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();
|
_ecore_x_image_shm_check();
|
||||||
im->shm = _ecore_x_image_shm_can;
|
im->shm = _ecore_x_image_shm_can;
|
||||||
return im;
|
return im;
|
||||||
|
|
Loading…
Reference in New Issue