evas: clip the clip rect to surface boundary in ector draw.

Change-Id: If747a055eb935a7369eaf8d16d1577200a23b54c
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Subhransu Mohanty 2015-08-27 10:48:45 +09:00 committed by Cedric BAIL
parent b11d9b33d9
commit b6e458804e
1 changed files with 3 additions and 0 deletions

View File

@ -3602,6 +3602,9 @@ eng_ector_renderer_draw(void *data EINA_UNUSED, void *context, void *surface, Ec
clip.y = dc->clip.y;
clip.w = dc->clip.w;
clip.h = dc->clip.h;
// clip the clip rect to surface boundary.
RECTS_CLIP_TO_RECT(clip.x, clip.y, clip.w, clip.h, 0, 0, dst->cache_entry.w, dst->cache_entry.h);
if ((clip.w < 1) || (clip.h < 1)) return;
}
else
{