forked from enlightenment/efl
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:
parent
87d523478b
commit
84c0ea0423
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue