forked from enlightenment/efl
evas canvas: fix broken proxy clipping.
Origin of clipper's clipper won't be transformed to derivative space. So it needs to transform the coordinate additionally.
This commit is contained in:
parent
48a64d827f
commit
ed444b698b
|
@ -1242,8 +1242,11 @@ _proxy_context_clip(Evas_Public_Data *evas, void *ctx, Evas_Proxy_Render_Data *p
|
||||||
/* stop if we found the source object's clipper */
|
/* stop if we found the source object's clipper */
|
||||||
if (clipper == proxy_render_data->src_obj->cur->clipper) return EINA_TRUE;
|
if (clipper == proxy_render_data->src_obj->cur->clipper) return EINA_TRUE;
|
||||||
|
|
||||||
/* recurse to the clipper itself */
|
/* recurse to the clipper itself.
|
||||||
return _proxy_context_clip(evas, ctx, proxy_render_data, clipper, off_x, off_y);
|
* origin of clipper's clipper won't be transformed to derivative space. */
|
||||||
|
return _proxy_context_clip(evas, ctx, proxy_render_data, clipper,
|
||||||
|
(off_x - proxy_render_data->src_obj->cur->geometry.x),
|
||||||
|
(off_y - proxy_render_data->src_obj->cur->geometry.y));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue