From 0589f6e6ee6e9bfe0c7139374fc8812e849e7bf7 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Thu, 31 May 2018 00:34:38 +0200 Subject: [PATCH] [sfnt] Get colors from `CPAL' table in right order (#54015). * src/sfnt/ttcolr.c (tt_face_find_color): Fix it. --- ChangeLog | 6 ++++++ src/sfnt/ttcolr.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 94a0a1a34..ad756c11d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2018-05-31 Werner Lemberg + + [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 ftcolor.h: Improve API design, fix typos (#54011, #54014). diff --git a/src/sfnt/ttcolr.c b/src/sfnt/ttcolr.c index 395c8c9bf..0fb332431 100644 --- a/src/sfnt/ttcolr.c +++ b/src/sfnt/ttcolr.c @@ -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;