forked from enlightenment/efl
eina - tiler -= return true if rect alreadt there as its not a failure
docs say return true on succesas, false on failure. adding a rect we already added is not a failur. it's an optimization to a NOP. so fix. this was brought up by and fixes T6669 ... but in the opposite way.
This commit is contained in:
parent
f609d6dc99
commit
43ac3c0b4c
|
@ -1237,7 +1237,7 @@ EAPI Eina_Bool eina_tiler_rect_add(Eina_Tiler *t, const Eina_Rectangle *r)
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
||||||
if (_rect_same(&tmp, &t->last.add))
|
if (_rect_same(&tmp, &t->last.add))
|
||||||
return EINA_FALSE;
|
return EINA_TRUE;
|
||||||
|
|
||||||
t->last.add = tmp;
|
t->last.add = tmp;
|
||||||
t->last.del.w = t->last.del.h = -1;
|
t->last.del.w = t->last.del.h = -1;
|
||||||
|
|
Loading…
Reference in New Issue