forked from enlightenment/efl
parent
1f2de469f1
commit
2032d7e213
|
@ -795,7 +795,9 @@ evas_engine_xrender_x11_image_alpha_set(void *data, void *image, int has_alpha)
|
||||||
|
|
||||||
re = (Render_Engine *)data;
|
re = (Render_Engine *)data;
|
||||||
if (!image) return image;
|
if (!image) return image;
|
||||||
if ((int)((XR_Image *)image)->alpha == has_alpha) return image;
|
if (((((XR_Image *)image)->alpha) && (has_alpha)) ||
|
||||||
|
((!((XR_Image *)image)->alpha) && (!has_alpha)))
|
||||||
|
return image;
|
||||||
if (((XR_Image *)image)->references > 1)
|
if (((XR_Image *)image)->references > 1)
|
||||||
{
|
{
|
||||||
XR_Image *old_image;
|
XR_Image *old_image;
|
||||||
|
|
|
@ -388,7 +388,10 @@ _xre_image_data_find(void *data)
|
||||||
XR_Image *im;
|
XR_Image *im;
|
||||||
|
|
||||||
im = __xre_image_dirty_hash_find(data);
|
im = __xre_image_dirty_hash_find(data);
|
||||||
if (im) im->references++;
|
if (im)
|
||||||
|
{
|
||||||
|
im->references++;
|
||||||
|
}
|
||||||
return im;
|
return im;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue