From 95a3b95a3eb56ec0f17ebe4aa89cafeb77326883 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 3 Mar 2025 15:22:26 -0700 Subject: [PATCH] [hvgl/transform] Micro-optimize --- src/hb-aat-var-hvgl-table.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hb-aat-var-hvgl-table.cc b/src/hb-aat-var-hvgl-table.cc index 275173384..e3bc611fa 100644 --- a/src/hb-aat-var-hvgl-table.cc +++ b/src/hb-aat-var-hvgl-table.cc @@ -597,9 +597,10 @@ PartComposite::get_path_at (const hb_hvgl_context_t *c, if (this_transform.is_translation ()) { - hb_transform_t transform = transforms_head; - transform.translate (this_transform.x0, this_transform.y0); - this_transform = transform; + double dx = this_transform.x0; + double dy = this_transform.y0; + this_transform = transforms_head; + this_transform.translate (dx, dy); } else this_transform.transform (transforms_head, true);