From: Chris Michael Date: Fri, 17 Jul 2015 18:58:34 +0000 (-0400) Subject: e-comp-wl: Fix region_add and region_subtract functions to make sure we have accurate... X-Git-Tag: upstream/0.20.0~558 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf993c6eee7b2db4008feae8a72cc5c4ead3324e;p=platform%2Fupstream%2Fenlightenment.git e-comp-wl: Fix region_add and region_subtract functions to make sure we have accurate opaque regions Signed-off-by: Chris Michael --- diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 0e49c5b..36f4896 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -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});