summaryrefslogtreecommitdiff
path: root/src/fcfreetype.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-07-16 17:59:45 +0200
committerBehdad Esfahbod <behdad@behdad.org>2018-07-16 17:59:54 +0200
commit48e9e5f4f0e97b12f7923662e06820c7077ae8af (patch)
tree00416241c17b9817bb2e909d68a0fec98de19a66 /src/fcfreetype.c
parent5a46d572c06f1904ea45b4a24a75fb508c8c9f07 (diff)
downloadfontconfig-48e9e5f4f0e97b12f7923662e06820c7077ae8af.tar.gz
Use FT_HAS_COLOR
Diffstat (limited to 'src/fcfreetype.c')
-rw-r--r--src/fcfreetype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index 6af1c51..3924104 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -1267,7 +1267,7 @@ FcFreeTypeQueryFaceInternal (const FT_Face face,
if (!FcPatternAddBool (pat, FC_OUTLINE, has_outline))
goto bail1;
- has_color = !!(face->face_flags & FT_FACE_FLAG_COLOR);
+ has_color = FT_HAS_COLOR (face);
if (!FcPatternAddBool (pat, FC_COLOR, has_color))
goto bail1;