diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2022-03-25 02:20:10 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2022-03-25 02:20:10 +0300 |
commit | b030ec8760a0f3ca9b0eb36c265cb35025fdc7ca (patch) | |
tree | 659ce71fae920aa436702baa80f46548e97599c4 /source/blender/blenfont/intern/blf.c | |
parent | 4fd0a69d7ba86e92390c421a745c6f32f1050c31 (diff) |
BLF Cleanup: Use FreeType Enum FT_Err_Ok
Replace comparisons of FT_Error against 0 with FT_Err_Ok instead.
See D14052 for more details.
Differential Revision: https://developer.blender.org/D14052
Reviewed by Campbell Barton
Diffstat (limited to 'source/blender/blenfont/intern/blf.c')
-rw-r--r-- | source/blender/blenfont/intern/blf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenfont/intern/blf.c b/source/blender/blenfont/intern/blf.c index 17d6e431632..2b5a2cdf606 100644 --- a/source/blender/blenfont/intern/blf.c +++ b/source/blender/blenfont/intern/blf.c @@ -129,7 +129,7 @@ bool BLF_has_glyph(int fontid, unsigned int unicode) { FontBLF *font = blf_get(fontid); if (font) { - return FT_Get_Char_Index(font->face, unicode) != 0; + return FT_Get_Char_Index(font->face, unicode) != FT_Err_Ok; } return false; } |