mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-26 01:11:25 +01:00
[var] Add a fast path for coord == 0
This commit is contained in:
1 parent
7b1b20fa00
commit
fa6f123eef
1 file changed
+2
@@ -2471,6 +2471,8 @@ struct VarRegionAxis
|
||||
int peak = peakCoord.to_int ();
|
||||
if (peak == 0 || coord == peak)
|
||||
return 1.f;
|
||||
else if (coord == 0) // Faster
|
||||
return 0.f;
|
||||
|
||||
int start = startCoord.to_int (), end = endCoord.to_int ();
|
||||
|
||||
|
||||
Reference in new issue
Block a user