aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/efl_canvas_vg_container.c
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-01-10 14:15:07 +0900
committerHermet Park <hermetpark@gmail.com>2019-01-10 14:20:53 +0900
commita5040e029dfa3c2aba16d4efb5142049bc56b38a (patch)
treefab4cb582304a909c10922049b6252d026adb413 /src/lib/evas/canvas/efl_canvas_vg_container.c
parentdoc: specify memory units in Efl.Cached.Item (diff)
downloadefl-a5040e029dfa3c2aba16d4efb5142049bc56b38a.tar.gz
evas vg: clear mask buffer properly.
when mask buffer is reused, it must be cleared first.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_container.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_vg_container.c b/src/lib/evas/canvas/efl_canvas_vg_container.c
index 1b0adc5ee5..f82f18a9f2 100644
--- a/src/lib/evas/canvas/efl_canvas_vg_container.c
+++ b/src/lib/evas/canvas/efl_canvas_vg_container.c
@@ -64,6 +64,11 @@ _prepare_mask(Evas_Object_Protected_Data *obj, //vector object
pd->mask.bound.h = mbound.h;
pd->mask.vg_pd = obj;
}
+ else
+ {
+ if (pd->mask.pixels)
+ memset(pd->mask.pixels, 0x0, sizeof(uint32_t) * mbound.w * mbound.h);
+ }
pd->mask.bound.x = mbound.x;
pd->mask.bound.y = mbound.y;