Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
d41a855a
by Ben Wagner at 2024-05-29T17:01:29-04:00
1 changed file:
Changes:
... | ... | @@ -2129,12 +2129,12 @@ |
2129 | 2129 | outerIndex,
|
2130 | 2130 | innerIndex );
|
2131 | 2131 | |
2132 | - /* Convert to 16.16 format before adding. */
|
|
2133 | - v += MUL_INT( delta, 4 );
|
|
2132 | + /* Convert delta in F2DOT14 to 16.16 before adding. */
|
|
2133 | + v += MUL_INT( delta, 4 );
|
|
2134 | 2134 | |
2135 | - /* Clamp value range. */
|
|
2136 | - v = v >= 0x10000L ? 0x10000 : v;
|
|
2137 | - v = v <= -0x10000L ? -0x10000 : v;
|
|
2135 | + /* Clamp value range [-1, 1]. */
|
|
2136 | + v = v >= 0x10000L ? 0x10000 : v;
|
|
2137 | + v = v <= -0x10000L ? -0x10000 : v;
|
|
2138 | 2138 | |
2139 | 2139 | new_normalized[i] = v;
|
2140 | 2140 | }
|