summaryrefslogtreecommitdiffstats
path: root/libass/ass_directwrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'libass/ass_directwrite.c')
-rw-r--r--libass/ass_directwrite.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libass/ass_directwrite.c b/libass/ass_directwrite.c
index 13e20a3..bf40cfb 100644
--- a/libass/ass_directwrite.c
+++ b/libass/ass_directwrite.c
@@ -323,21 +323,20 @@ static size_t get_data(void *data, unsigned char *buf, size_t offset,
}
/*
- * Checks if the passed font has a specific unicode
- * character. Returns 0 for failure and 1 for success
+ * Check if the passed font has a specific unicode character.
*/
-static int check_glyph(void *data, uint32_t code)
+static bool check_glyph(void *data, uint32_t code)
{
HRESULT hr = S_OK;
FontPrivate *priv = (FontPrivate *) data;
BOOL exists = FALSE;
if (code == 0)
- return 1;
+ return true;
hr = IDWriteFont_HasCharacter(priv->font, code, &exists);
if (FAILED(hr))
- return 0;
+ return false;
return exists;
}