Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
5e227133
by Ben Wagner at 2022-01-15T17:21:39-05:00
1 changed file:
Changes:
... | ... | @@ -2110,14 +2110,17 @@ |
2110 | 2110 |
FT_Fixed old_x_scale = x_scale;
|
2111 | 2111 |
FT_Fixed old_y_scale = y_scale;
|
2112 | 2112 |
|
2113 |
- FT_Fixed scaled;
|
|
2114 |
- FT_Fixed fitted;
|
|
2113 |
+ FT_Fixed scaled = 0;
|
|
2114 |
+ FT_Fixed fitted = 0;
|
|
2115 | 2115 |
|
2116 | 2116 |
FT_Bool rescale = FALSE;
|
2117 | 2117 |
|
2118 | 2118 |
|
2119 |
- scaled = FT_MulFix( globals->blues.normal_top.zones->org_ref, y_scale );
|
|
2120 |
- fitted = FT_PIX_ROUND( scaled );
|
|
2119 |
+ if ( globals->blues.normal_top.count )
|
|
2120 |
+ {
|
|
2121 |
+ scaled = FT_MulFix( globals->blues.normal_top.zones->org_ref, y_scale );
|
|
2122 |
+ fitted = FT_PIX_ROUND( scaled );
|
|
2123 |
+ }
|
|
2121 | 2124 |
|
2122 | 2125 |
if ( fitted != 0 && scaled != fitted )
|
2123 | 2126 |
{
|