From 573e77280b4f78c9a880c4abfa1f86d70354bc79 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 27 Jun 2022 15:35:28 -0600 Subject: [PATCH] [gvar] Optimize unpack_deltas --- src/hb-ot-var-gvar-table.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-var-gvar-table.hh b/src/hb-ot-var-gvar-table.hh index 31970458d..77d6ab47d 100644 --- a/src/hb-ot-var-gvar-table.hh +++ b/src/hb-ot-var-gvar-table.hh @@ -609,8 +609,8 @@ struct gvar { unsigned int pt_index = apply_to_all ? i : indices[i]; deltas[pt_index].flag = 1; /* this point is referenced, i.e., explicit deltas specified */ - deltas[pt_index].x += x_deltas[i] * scalar; - deltas[pt_index].y += y_deltas[i] * scalar; + deltas[pt_index].x += x_deltas.arrayZ[i] * scalar; + deltas[pt_index].y += y_deltas.arrayZ[i] * scalar; } /* infer deltas for unreferenced points */