From f6dad115011a31cebb74ff8f55a9ea118d5a32eb Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 1 Jan 2010 13:57:28 +0000 Subject: [PATCH] again, a stupid fix for stupid MSVC not supporting a 11 years old C standard git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9764 d7cf8633-e32d-0410-b094-e92efae38249 --- ft2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ft2.c b/ft2.c index 420cc386..1e31dc4f 100644 --- a/ft2.c +++ b/ft2.c @@ -314,7 +314,7 @@ static float Font_VirtualToRealSize(float sz) static float Font_SnapTo(float val, float snapwidth) { - return rint(val / snapwidth) * snapwidth; + return floor(val / snapwidth + 0.5f) * snapwidth; } static qboolean Font_LoadFile(const char *name, int _face, ft2_font_t *font); -- 2.39.2