From fe62af515ba050f3634c927fb422fac2903d3844 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Tue, 8 Apr 2025 18:11:52 +0200 Subject: [PATCH] [fixup] Use correct start values for min/max loops. --- src/autofit/aflatin.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c index 6190dd003..1ccb89cef 100644 --- a/src/autofit/aflatin.c +++ b/src/autofit/aflatin.c @@ -2781,8 +2781,8 @@ { FT_Int highest_contour = -1; - FT_Pos highest_min_y = 0; - FT_Pos current_min_y = 0; + FT_Pos highest_min_y = 32000; + FT_Pos current_min_y = 32000; FT_Int contour; @@ -3173,8 +3173,8 @@ hints->num_contours >= 2 ) { FT_Int highest_contour = -1; - FT_Pos highest_min_y = 0; - FT_Pos current_min_y = 0; + FT_Pos highest_min_y = 32000; + FT_Pos current_min_y = 32000; FT_Pos highest_max_y; @@ -3318,8 +3318,8 @@ hints->num_contours >= 2 ) { FT_Int lowest_contour = -1; - FT_Pos lowest_max_y = 0; - FT_Pos current_max_y = 0; + FT_Pos lowest_max_y = -32000; + FT_Pos current_max_y = -32000; FT_Int contour; FT_Pos adjustment_amount = 0;