[gvar] Optimize translate()
This commit is contained in:
parent
9f067582b8
commit
95bfa0913d
|
@ -84,8 +84,10 @@ struct contour_point_vector_t : hb_vector_t<contour_point_t>
|
||||||
{
|
{
|
||||||
if (delta.x == 0.f && delta.y == 0.f)
|
if (delta.x == 0.f && delta.y == 0.f)
|
||||||
return;
|
return;
|
||||||
for (unsigned int i = 0; i < length; i++)
|
auto arrayZ = this->arrayZ;
|
||||||
(*this)[i].translate (delta);
|
unsigned count = length;
|
||||||
|
for (unsigned i = 0; i < count; i++)
|
||||||
|
arrayZ[i].translate (delta);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue