[Bf-blender-cvs] [5b8143287b6] master: Fix: Build error after recent commit

Hans Goudey noreply at git.blender.org
Fri Aug 5 00:20:17 CEST 2022


Commit: 5b8143287b607e52a65082fd6a678d0e54f50826
Author: Hans Goudey
Date:   Thu Aug 4 17:20:10 2022 -0500
Branches: master
https://developer.blender.org/rB5b8143287b607e52a65082fd6a678d0e54f50826

Fix: Build error after recent commit

A second try after 8b467313965ac5ea.

===================================================================

M	source/blender/blenfont/intern/blf_font.c

===================================================================

diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c
index 07b66d0728e..17145bdbe99 100644
--- a/source/blender/blenfont/intern/blf_font.c
+++ b/source/blender/blenfont/intern/blf_font.c
@@ -1526,7 +1526,7 @@ bool blf_font_size(FontBLF *font, float size, unsigned int dpi)
   }
 
   /* FreeType uses fixed-point integers in 64ths. */
-  FT_UInt ft_size = lroundf(size * 64.0f);
+  FT_UInt ft_size = round_fl_to_uint(size * 64.0f);
   /* Adjust our new size to be on even 64ths. */
   size = (float)ft_size / 64.0f;



More information about the Bf-blender-cvs mailing list