mirror of
git://git.sv.nongnu.org/freetype/freetype2.git
synced 2026-01-19 04:52:09 +00:00
[pshinter] Slightly simplify BlueShift application.
* src/pshinter/pshglob.c (psh_blues_scale_zones): Just divide.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user