forked from enlightenment/efl
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:
parent
b11d9b33d9
commit
b6e458804e
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue