mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 16:01:07 +01:00
[hvgl] Micro-optimization leftover
This commit is contained in:
1 parent
76017d561a
commit
2ba20cfe00
1 file changed
+1
-1
@@ -226,7 +226,7 @@ PartShape::get_path_at (const struct hvgl &hvgl,
|
||||
{
|
||||
const segment_t segment = &v.arrayZ[i * 4];
|
||||
unsigned next_i = i == end - 1 ? start : i + 1;
|
||||
const segment_t next_segment = &v[next_i * 4];
|
||||
const segment_t next_segment = &v.arrayZ[next_i * 4];
|
||||
|
||||
float x1 = (float) segment[SEGMENT_POINT_OFF_CURVE_X];
|
||||
float y1 = (float) segment[SEGMENT_POINT_OFF_CURVE_Y];
|
||||
|
||||
Reference in new issue
Block a user