mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-15 01:18:13 +00:00
[gvar/glyf] Minor save a variable
This commit is contained in:
parent
07be0b6878
commit
700975f732
2 changed files with 10 additions and 4 deletions
|
@ -157,7 +157,8 @@ struct Glyph
|
|||
yMin = yMax = all_points[0].y;
|
||||
}
|
||||
|
||||
for (unsigned i = 1; i < all_points.length - 4; i++)
|
||||
unsigned count = all_points.length - 4;
|
||||
for (unsigned i = 1; i < count; i++)
|
||||
{
|
||||
float x = all_points[i].x;
|
||||
float y = all_points[i].y;
|
||||
|
|
|
@ -341,7 +341,8 @@ struct gvar
|
|||
|
||||
if (flush)
|
||||
{
|
||||
for (unsigned int i = 0; i < points.length; i++)
|
||||
unsigned count = points.length;
|
||||
for (unsigned int i = 0; i < count; i++)
|
||||
points.arrayZ[i].translate (deltas.arrayZ[i]);
|
||||
flush = false;
|
||||
|
||||
|
@ -421,7 +422,8 @@ struct gvar
|
|||
{
|
||||
if (!end_points)
|
||||
{
|
||||
for (unsigned i = 0; i < points.length; ++i)
|
||||
unsigned count = points.length;
|
||||
for (unsigned i = 0; i < count; ++i)
|
||||
if (points.arrayZ[i].is_end_point)
|
||||
end_points.push (i);
|
||||
if (unlikely (end_points.in_error ())) return false;
|
||||
|
@ -481,8 +483,11 @@ struct gvar
|
|||
} while (iterator.move_to_next ());
|
||||
|
||||
if (flush)
|
||||
for (unsigned int i = 0; i < points.length; i++)
|
||||
{
|
||||
unsigned count = points.length;
|
||||
for (unsigned int i = 0; i < count; i++)
|
||||
points.arrayZ[i].translate (deltas.arrayZ[i]);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue