forked from enlightenment/efl
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:
parent
89acf9cf28
commit
ee840eecd1
|
@ -3302,7 +3302,10 @@ state_write:
|
||||||
|
|
||||||
// Filter stuff
|
// Filter stuff
|
||||||
if (o->filled)
|
if (o->filled)
|
||||||
iw -= l + r;
|
{
|
||||||
|
iw -= l + r;
|
||||||
|
if (iw <= 0) break;
|
||||||
|
}
|
||||||
|
|
||||||
while ((int)idy < obj->cur->geometry.h)
|
while ((int)idy < obj->cur->geometry.h)
|
||||||
{
|
{
|
||||||
|
@ -3320,7 +3323,10 @@ state_write:
|
||||||
|
|
||||||
// Filter stuff
|
// Filter stuff
|
||||||
if (o->filled)
|
if (o->filled)
|
||||||
ih -= t + b;
|
{
|
||||||
|
ih -= t + b;
|
||||||
|
if (ih <= 0) break;
|
||||||
|
}
|
||||||
|
|
||||||
if ((o->cur->border.l == 0) &&
|
if ((o->cur->border.l == 0) &&
|
||||||
(o->cur->border.r == 0) &&
|
(o->cur->border.r == 0) &&
|
||||||
|
|
Loading…
Reference in New Issue