Werner Lemberg pushed to branch master at FreeType / FreeType
Commits:
-
4797b2ff
by Dominik Röttsches at 2022-08-26T12:08:34+03:00
1 changed file:
Changes:
... | ... | @@ -1575,7 +1575,7 @@ |
1575 | 1575 | /* Iterator points at first `ColorStop` of `ColorLine`. */
|
1576 | 1576 | p = iterator->p;
|
1577 | 1577 | |
1578 | - color_stop->stop_offset = (FT_Fixed)FT_NEXT_SHORT( p ) << 2;
|
|
1578 | + color_stop->stop_offset = F2DOT14_TO_FIXED( FT_NEXT_SHORT( p ) );
|
|
1579 | 1579 | |
1580 | 1580 | color_stop->color.palette_index = FT_NEXT_USHORT( p );
|
1581 | 1581 | |
... | ... | @@ -1600,7 +1600,7 @@ |
1600 | 1600 | item_deltas ) )
|
1601 | 1601 | return 0;
|
1602 | 1602 | |
1603 | - color_stop->stop_offset += (FT_Fixed)item_deltas[0] << 2;
|
|
1603 | + color_stop->stop_offset += F2DOT14_TO_FIXED( item_deltas[0] );
|
|
1604 | 1604 | color_stop->color.alpha += item_deltas[1];
|
1605 | 1605 | }
|
1606 | 1606 | #else
|