summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2017-09-12 11:42:18 -0400
committerAkira TAGOH <akira@tagoh.org>2017-09-21 16:53:35 +0900
commitef3252e0272e0eb7d483a017f947ad8f5570ea3e (patch)
treeebfd9195a4d367b23ad4f06415539ab90ff30241
parent4d3410bd08a0f61272ca1dbb1dd27ac8c5f222de (diff)
downloadfontconfig-ef3252e0272e0eb7d483a017f947ad8f5570ea3e.tar.gz
Minor
-rw-r--r--src/fcfreetype.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index 724f275..4be025a 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -1219,14 +1219,11 @@ FcFreeTypeQueryFace (const FT_Face face,
int has_outline = !!(face->face_flags & FT_FACE_FLAG_SCALABLE);
int has_color = 0;
-#ifdef FT_FACE_FLAG_COLOR
- has_color = !!(face->face_flags & FT_FACE_FLAG_COLOR);
-#endif
-
if (!FcPatternAddBool (pat, FC_OUTLINE, has_outline))
goto bail1;
#ifdef FT_FACE_FLAG_COLOR
+ has_color = !!(face->face_flags & FT_FACE_FLAG_COLOR);
if (!FcPatternAddBool (pat, FC_COLOR, has_color))
goto bail1;
#endif