Evas image: Skip draw when the image size is < 0 due to filter padding

If the Image Object size is smaller than the required padding,
nothing should be drawn, so just skip it.
This commit is contained in:
Jean-Philippe Andre 2014-03-20 18:24:38 +09:00 committed by Jean-Philippe ANDRE
parent 89acf9cf28
commit ee840eecd1
1 changed files with 8 additions and 2 deletions

View File

@ -3302,7 +3302,10 @@ state_write:
// Filter stuff
if (o->filled)
iw -= l + r;
{
iw -= l + r;
if (iw <= 0) break;
}
while ((int)idy < obj->cur->geometry.h)
{
@ -3320,7 +3323,10 @@ state_write:
// Filter stuff
if (o->filled)
ih -= t + b;
{
ih -= t + b;
if (ih <= 0) break;
}
if ((o->cur->border.l == 0) &&
(o->cur->border.r == 0) &&