set NULL image data in _e_comp_object_pixels_get() on failure

ensure that nothing is rendered here
This commit is contained in:
Mike Blumenkrantz 2016-04-22 12:45:26 -04:00
parent 6f83ec7329
commit b94023c412
1 changed files with 6 additions and 3 deletions

View File

@ -904,15 +904,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)