[gvar] Use memset
This commit is contained in:
parent
e630a65e60
commit
2d098d5d7f
|
@ -607,8 +607,8 @@ struct gvar
|
||||||
if (unlikely (!y_deltas.resize (num_deltas, false))) return false;
|
if (unlikely (!y_deltas.resize (num_deltas, false))) return false;
|
||||||
if (unlikely (!GlyphVariationData::unpack_deltas (p, y_deltas, end))) return false;
|
if (unlikely (!GlyphVariationData::unpack_deltas (p, y_deltas, end))) return false;
|
||||||
|
|
||||||
for (unsigned int i = 0; i < deltas.length; i++)
|
hb_memset (deltas.arrayZ, 0, deltas.length * sizeof (deltas.arrayZ[0]));
|
||||||
deltas.arrayZ[i].init ();
|
|
||||||
for (unsigned int i = 0; i < num_deltas; i++)
|
for (unsigned int i = 0; i < num_deltas; i++)
|
||||||
{
|
{
|
||||||
unsigned int pt_index = apply_to_all ? i : indices[i];
|
unsigned int pt_index = apply_to_all ? i : indices[i];
|
||||||
|
|
Loading…
Reference in New Issue