]> git.eshelyaron.com Git - emacs.git/commitdiff
Correct computation of intermediate axis coordinates
authorPo Lu <luangruo@yahoo.com>
Wed, 25 Oct 2023 02:19:36 +0000 (10:19 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 25 Oct 2023 02:19:36 +0000 (10:19 +0800)
* src/sfnt.c (sfnt_compute_tuple_scale, sfnt_vary_simple_glyph)
(sfnt_vary_compound_glyph): Correct typos involving
intermediate_end (or something of the like) being set to
intermediate_start.

src/sfnt.c

index 01d061be79c338d1bc7d8277b3be3e79c10a3f57..7559055e8c27a7ed4789bfb542182469609bf28c 100644 (file)
@@ -14116,7 +14116,7 @@ sfnt_compute_tuple_scale (struct sfnt_blend *blend, bool intermediate_p,
       if (intermediate_p)
        {
          start = intermediate_start[i] * 4;
-         end = intermediate_start[i] * 4;
+         end = intermediate_end[i] * 4;
        }
 
       /* Ignore tuples that can be skipped.  */
@@ -14669,7 +14669,7 @@ sfnt_vary_simple_glyph (struct sfnt_blend *blend, sfnt_glyph id,
     coords = alloca (gvar->axis_count * sizeof *coords * 3);
 
   intermediate_start = coords + gvar->axis_count;
-  intermediate_end = coords + gvar->axis_count;
+  intermediate_end = intermediate_start + gvar->axis_count;
 
   /* Allocate arrays of booleans and fwords to keep track of which
      points have been touched.  */
@@ -15041,7 +15041,7 @@ sfnt_vary_compound_glyph (struct sfnt_blend *blend, sfnt_glyph id,
     coords = alloca (gvar->axis_count * sizeof *coords * 3);
 
   intermediate_start = coords + gvar->axis_count;
-  intermediate_end = coords + gvar->axis_count;
+  intermediate_end = intermediate_start + gvar->axis_count;
 
   while (ntuples--)
     {