diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-07-03 18:09:24 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-07-03 18:10:27 +0300 |
commit | cad2d32be67729f39fc44172668e77ab8faabf98 (patch) | |
tree | d66a5a09f6ba5bca90c45b081bb1b2454f0eea74 /source/blender/blenfont | |
parent | 4a5389816b4240eb9f06bb469bf5b308a4b7f13c (diff) |
Clang-Tidy: Enable bugprone-misplaced-widening-cast
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r-- | source/blender/blenfont/intern/blf_font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c index da6224cff7f..50a8223a84c 100644 --- a/source/blender/blenfont/intern/blf_font.c +++ b/source/blender/blenfont/intern/blf_font.c @@ -297,7 +297,7 @@ void blf_font_size(FontBLF *font, unsigned int size, unsigned int dpi) } } - err = FT_Set_Char_Size(font->face, 0, (FT_F26Dot6)(size * 64), dpi, dpi); + err = FT_Set_Char_Size(font->face, 0, ((FT_F26Dot6)(size)) * 64, dpi, dpi); if (err) { /* FIXME: here we can go through the fixed size and choice a close one */ printf("The current font don't support the size, %u and dpi, %u\n", size, dpi); |