From 3008032062e2ce8549c26b42ae55c6e02439f27c Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Fri, 6 Sep 2024 13:43:47 +0000 Subject: [PATCH] * src/sfnt/ttsbit.c (tt_face_load_sbix_image): Tweak loop. --- src/sfnt/ttsbit.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/sfnt/ttsbit.c b/src/sfnt/ttsbit.c index 9738d464f..94dcb52f9 100644 --- a/src/sfnt/ttsbit.c +++ b/src/sfnt/ttsbit.c @@ -1552,9 +1552,7 @@ /* `Load_SBit_Png` always returns a pixmap with 32 bits per pixel */ /* and no extra pitch bytes. */ - FT_UInt32 width = (FT_UInt32)( map->width ); - FT_UInt32 half_width = (FT_UInt32)( map->width / 2 ); - + FT_UInt width = map->width; FT_UInt y; @@ -1563,10 +1561,8 @@ FT_UInt32* left = curr_pos; FT_UInt32* right = curr_pos + width - 1; - FT_UInt32 x; - - for ( x = 0; x < half_width; x++ ) + while( left < right ) { FT_UInt32 value;