mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
[glyf] Optimize points decoding
This commit is contained in:
1 parent
86b7022503
commit
51cfcf2957
1 file changed
+3
-2
@@ -125,7 +125,8 @@ struct SimpleGlyph
|
||||
const simple_glyph_flag_t same_flag)
|
||||
{
|
||||
float v = 0;
|
||||
for (unsigned i = 0; i < points_.length; i++)
|
||||
unsigned count = points_.length;
|
||||
for (unsigned i = 0; i < count; i++)
|
||||
{
|
||||
uint8_t flag = points_[i].flag;
|
||||
if (flag & short_flag)
|
||||
@@ -145,7 +146,7 @@ struct SimpleGlyph
|
||||
p += HBINT16::static_size;
|
||||
}
|
||||
}
|
||||
points_[i].*m = v;
|
||||
points_.arrayZ[i].*m = v;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user