summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2020-02-27 14:21:45 +0900
committerAkira TAGOH <akira@tagoh.org>2020-02-27 14:25:10 +0900
commitd3bfbea7dc53aa7fa52aa9616235a23d4507da1b (patch)
tree8d7f49fe7a9b11c311ac8c651469e9a2927d29f8
parentfbc05949ef52c8a8d69233eed77f6636dffec280 (diff)
Set exact boolean value to color property
This is a regression since 48e9e5f4
-rw-r--r--src/fcfreetype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index 9c2ae83..cd8fa43 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -1294,7 +1294,7 @@ FcFreeTypeQueryFaceInternal (const FT_Face face,
if (!FcPatternObjectAddBool (pat, FC_OUTLINE_OBJECT, has_outline))
goto bail1;
- has_color = FT_HAS_COLOR (face);
+ has_color = !!FT_HAS_COLOR (face);
if (!FcPatternObjectAddBool (pat, FC_COLOR_OBJECT, has_color))
goto bail1;