diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2016-08-24 14:40:20 +0900 |
---|---|---|
committer | Simon Lees <sflees@suse.de> | 2016-12-06 11:42:23 +1030 |
commit | f232c130f390f72bd6691bc0635a91ff7a942d19 (patch) | |
tree | a774346c491b282873df93c53e919cd7b134a3bf | |
parent | 14b3f9f45fd9e962d6b982b5a77689bd5ee28c0d (diff) | |
download | efl-f232c130f390f72bd6691bc0635a91ff7a942d19.tar.gz |
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
-rw-r--r-- | src/lib/ecore_x/xlib/ecore_x_image.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ecore_x/xlib/ecore_x_image.c b/src/lib/ecore_x/xlib/ecore_x_image.c index 6ce8919df5..016323c175 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; |