evas vg: clear mask buffer properly.

when mask buffer is reused, it must be cleared first.
This commit is contained in:
Hermet Park 2019-01-10 14:15:07 +09:00
parent a945dbc5d8
commit a5040e029d
1 changed files with 5 additions and 0 deletions

View File

@ -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;