summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-01-22 16:39:03 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-01-22 16:39:03 +0900
commit84c0ea04232c56feb94ae17a54b79fab85a22a40 (patch)
treeeda1b9694e89faae0c5345e3b4abd2d04ae6a30a /src/modules
parent87d523478b3c3f37bd82548b5f3c822b1501c404 (diff)
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.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/engines/software_generic/evas_engine.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/evas/engines/software_generic/evas_engine.c b/src/modules/evas/engines/software_generic/evas_engine.c
index 95032e2234..4ddf80a7f6 100644
--- a/src/modules/evas/engines/software_generic/evas_engine.c
+++ b/src/modules/evas/engines/software_generic/evas_engine.c
@@ -457,6 +457,9 @@ eng_context_clip_image_set(void *data EINA_UNUSED, void *context, void *surface,
457 else 457 else
458#endif 458#endif
459 evas_cache_image_ref(ie); 459 evas_cache_image_ref(ie);
460
461 RECTS_CLIP_TO_RECT(ctx->clip.x, ctx->clip.y, ctx->clip.w, ctx->clip.h,
462 x, y, ie->w, ie->h);
460 } 463 }
461} 464}
462 465