e-comp-wl: Fix region_add and region_subtract functions to make sure we have accurate opaque regions

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-07-17 14:58:34 -04:00
parent 32c48f9a40
commit bf993c6eee
1 changed files with 2 additions and 2 deletions

View File

@ -1555,7 +1555,7 @@ _e_comp_wl_region_cb_add(struct wl_client *client EINA_UNUSED, struct wl_resourc
{
Eina_Tiler *src;
src = eina_tiler_new(w, h);
src = eina_tiler_new(w + x, h + y);
eina_tiler_tile_size_set(src, 1, 1);
eina_tiler_rect_add(src, &(Eina_Rectangle){x, y, w, h});
eina_tiler_union(tiler, src);
@ -1576,7 +1576,7 @@ _e_comp_wl_region_cb_subtract(struct wl_client *client EINA_UNUSED, struct wl_re
{
Eina_Tiler *src;
src = eina_tiler_new(w, h);
src = eina_tiler_new(w + x, h + y);
eina_tiler_tile_size_set(src, 1, 1);
eina_tiler_rect_add(src, &(Eina_Rectangle){x, y, w, h});