diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-12-12 17:00:39 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-12-13 13:47:48 +0900 |
commit | 1fdbb00e225ce9e98e7ec2e2ec554eb5d1e02e69 (patch) | |
tree | e61a7f9d422e3876aa97ff8f602898b1e8b576f2 /src/lib/ector/cairo/ector_renderer_cairo_shape.c | |
parent | 3136500fbeba47538ebdf95ead9ef49a4579db3d (diff) | |
download | efl-1fdbb00e225ce9e98e7ec2e2ec554eb5d1e02e69.tar.gz |
efl: Move VG-specific change event to efl.gfx.path
Diffstat (limited to 'src/lib/ector/cairo/ector_renderer_cairo_shape.c')
-rw-r--r-- | src/lib/ector/cairo/ector_renderer_cairo_shape.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/ector/cairo/ector_renderer_cairo_shape.c b/src/lib/ector/cairo/ector_renderer_cairo_shape.c index 00bc3d43e1..7012491341 100644 --- a/src/lib/ector/cairo/ector_renderer_cairo_shape.c +++ b/src/lib/ector/cairo/ector_renderer_cairo_shape.c @@ -76,11 +76,17 @@ struct _Ector_Renderer_Cairo_Shape_Data }; static void -_ector_renderer_cairo_shape_path_changed(void *data, const Efl_Event *event EINA_UNUSED) +_ector_renderer_cairo_shape_path_changed(void *data, const Efl_Event *event) { Ector_Renderer_Cairo_Shape_Data *pd = data; + Efl_Gfx_Path_Change_Event *ev = event->info; - if (pd->path) cairo_path_destroy(pd->path); + if (!pd->path) return; + if (ev && !((ev->what & EFL_GFX_CHANGE_FLAG_MATRIX) || + (ev->what & EFL_GFX_CHANGE_FLAG_PATH))) + return; + + cairo_path_destroy(pd->path); pd->path = NULL; } |