Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarley Acheson <harley.acheson@gmail.com>2020-06-06 03:05:06 +0300
committerHarley Acheson <harley.acheson@gmail.com>2020-06-06 03:05:06 +0300
commita39cc5ae4da2cd036a61d69b871a89659fd07547 (patch)
tree074ebe707aac7afa9618f804faae259109857ce0 /source/blender/blenfont/intern/blf_glyph.c
parentb74cc23dc478f2c4260e2e4269c8450e3d5c450e (diff)
Fix for T77478: Quiet Conversion Error/Warning
Quiet warning/error about int and float multiplication. Differential Revision: https://developer.blender.org/D7893 Reviewed by Ray Molenkamp
Diffstat (limited to 'source/blender/blenfont/intern/blf_glyph.c')
-rw-r--r--source/blender/blenfont/intern/blf_glyph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c
index 1867df3100c..f46a74a739a 100644
--- a/source/blender/blenfont/intern/blf_glyph.c
+++ b/source/blender/blenfont/intern/blf_glyph.c
@@ -316,7 +316,7 @@ GlyphBLF *blf_glyph_add(FontBLF *font, GlyphCacheBLF *gc, unsigned int index, un
FT_Outline_EmboldenXY(&font->face->glyph->outline, extra_x, extra_y);
if ((font->face->face_flags & FT_FACE_FLAG_FIXED_WIDTH) == 0) {
/* Need to increase advance, but not for fixed-width fonts. */
- font->face->glyph->advance.x += (int) (extra_x * 1.05f);
+ font->face->glyph->advance.x += (FT_Pos)(((float)extra_x) * 1.05f);
font->face->glyph->advance.y += extra_y;
}
else {