[sfnt] Get colors from `CPAL' table in right order (#54015).

* src/sfnt/ttcolr.c (tt_face_find_color): Fix it.
parthw-pk-vf
Werner Lemberg 7 years ago
parent db7c406084
commit 0589f6e6ee
  1. 6
      ChangeLog
  2. 4
      src/sfnt/ttcolr.c

@ -1,3 +1,9 @@
2018-05-31 Werner Lemberg <wl@gnu.org>
[sfnt] Get colors from `CPAL' table in right order (#54015).
* src/sfnt/ttcolr.c (tt_face_find_color): Fix it.
2018-05-30 Werner Lemberg <wl@gnu.org>
ftcolor.h: Improve API design, fix typos (#54011, #54014).

@ -384,9 +384,9 @@
p = cpal->colors + color_offset + COLOR_SIZE * color_index;
*red = FT_NEXT_BYTE( p );
*green = FT_NEXT_BYTE( p );
*blue = FT_NEXT_BYTE( p );
*green = FT_NEXT_BYTE( p );
*red = FT_NEXT_BYTE( p );
*alpha = FT_NEXT_BYTE( p );
return 1;

Loading…
Cancel
Save