mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[CompositeGlyph] Micro-optimize
This commit is contained in:
parent
e9d74d6bb3
commit
75101802a1
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ struct CompositeGlyphRecord
|
|||
contour_point_t trans;
|
||||
get_transformation (matrix, trans);
|
||||
points.alloc (points.length + 4); // For phantom points
|
||||
if (unlikely (!points.resize (points.length + 1))) return false;
|
||||
if (unlikely (!points.resize (points.length + 1, false))) return false;
|
||||
points.arrayZ[points.length - 1] = trans;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue