From 32fc0af22206327ffd06e1d025f13b11fd8d1a46 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Mon, 17 Nov 2025 08:22:37 -0500 Subject: [PATCH] [pshinter] Slightly simplify BlueShift application. * src/pshinter/pshglob.c (psh_blues_scale_zones): Just divide. --- src/pshinter/pshglob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pshinter/pshglob.c b/src/pshinter/pshglob.c index 6bc945e50..a772b66f3 100644 --- a/src/pshinter/pshglob.c +++ b/src/pshinter/pshglob.c @@ -408,8 +408,8 @@ FT_Int threshold = blues->blue_shift; - while ( threshold > 0 && FT_MulFix( threshold, scale ) > 32 ) - threshold--; + if ( threshold > 0 && FT_MulFix( threshold, scale ) > 32 ) + threshold = 32 * 0x10000L / scale; blues->blue_threshold = threshold; }