Evas masking: Fix potential crash

This adjusts the clip to match the mask image data.
To be fair, I'm not sure in which situation those two
don't match well. This patch fixes a rare crash.
This commit is contained in:
Jean-Philippe Andre 2015-01-22 16:39:03 +09:00
parent 87d523478b
commit 84c0ea0423
1 changed files with 3 additions and 0 deletions

View File

@ -457,6 +457,9 @@ eng_context_clip_image_set(void *data EINA_UNUSED, void *context, void *surface,
else
#endif
evas_cache_image_ref(ie);
RECTS_CLIP_TO_RECT(ctx->clip.x, ctx->clip.y, ctx->clip.w, ctx->clip.h,
x, y, ie->w, ie->h);
}
}