discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=2085721ce714da90534ce31860fab6d249fb2f91

commit 2085721ce714da90534ce31860fab6d249fb2f91
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Apr 22 12:45:26 2016 -0400

    set NULL image data in _e_comp_object_pixels_get() on failure
    
    ensure that nothing is rendered here
---
 src/bin/e_comp_object.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index 8c4b8c9..6ecaba5 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -869,15 +869,18 @@ _e_comp_object_setup(E_Comp_Object *cw)
 
 /* for fast path evas rendering; only called during render */
 static void
-_e_comp_object_pixels_get(void *data, Evas_Object *obj EINA_UNUSED)
+_e_comp_object_pixels_get(void *data, Evas_Object *obj)
 {
    E_Comp_Object *cw = data;
    E_Client *ec = cw->ec;
    int pw, ph;
    int bx, by, bxx, byy;
 
-   if (!ec->pixmap) return;
-   if (!e_pixmap_size_get(ec->pixmap, &pw, &ph)) return;
+   if ((!ec->pixmap) || (!e_pixmap_size_get(ec->pixmap, &pw, &ph)))
+     {
+        evas_object_image_data_set(obj, NULL);
+        return;
+     }
    //INF("PIXEL GET %p: %dx%d || %dx%d", ec, ec->w, ec->h, pw, ph);
    e_pixmap_image_opaque_get(cw->ec->pixmap, &bx, &by, &bxx, &byy);
    if (bxx && byy)

-- 


Reply via email to