evas new region code - copy region size along with region math

This commit is contained in:
Carsten Haitzler 2015-09-23 22:21:59 +09:00
parent 65758a2160
commit 5df38e9d53
1 changed files with 4 additions and 0 deletions

View File

@ -899,6 +899,8 @@ region_rect_add(Region *dest, int x, int y, unsigned int w, unsigned int h)
return EINA_TRUE;
}
region.w = dest->w;
region.h = dest->h;
region.data = NULL;
region.bound.x1 = x;
region.bound.y1 = y;
@ -1227,6 +1229,8 @@ region_rect_del(Region *dest, int x, int y, unsigned int w, unsigned int h)
return EINA_TRUE;
}
region.w = dest->w;
region.h = dest->h;
region.data = NULL;
region.bound.x1 = x;
region.bound.y1 = y;