eina: make re-setting the same tiler tile size a no-op

This commit is contained in:
Mike Blumenkrantz 2015-07-08 12:33:23 -04:00
parent 034c297566
commit 26b35222b4
1 changed files with 1 additions and 0 deletions

View File

@ -1189,6 +1189,7 @@ EAPI void eina_tiler_tile_size_set(Eina_Tiler *t, int w, int h)
EINA_MAGIC_CHECK_TILER(t);
if ((w <= 0) || (h <= 0))
return;
if ((t->tile.w == w) && (t->tile.h == h)) return;
if (w == 1 || h == 1) t->rounding = EINA_FALSE;
t->tile.w = w;