diff --git a/unix/freetype.c b/unix/freetype.c index 900b9da6..27caa076 100644 --- a/unix/freetype.c +++ b/unix/freetype.c @@ -387,14 +387,14 @@ prima_ft_is_font_colored( FT_Face face) { #if defined(TTAG_COLR) && defined(TTAG_CPAL) FT_Int a,b,c; - FT_ULong l = 0; + FT_ULong l1 = 0, l2 = 0; FT_Library_Version(ft_library,&a,&b,&c); if ( a < 2 || ( a == 2 && b < 10 )) /* CPAL/COLR only supported in 2.10 */ return false; return - FT_Load_Sfnt_Table(face, TTAG_COLR, 0, NULL, &l) && - FT_Load_Sfnt_Table(face, TTAG_CPAL, 0, NULL, &l) + FT_Load_Sfnt_Table(face, TTAG_COLR, 0, NULL, &l1) && + FT_Load_Sfnt_Table(face, TTAG_CPAL, 0, NULL, &l2) ; #else return false;