From: divverent Date: Fri, 1 Jan 2010 13:57:28 +0000 (+0000) Subject: again, a stupid fix for stupid MSVC not supporting a 11 years old C standard X-Git-Tag: xonotic-v0.1.0preview~884 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f6dad115011a31cebb74ff8f55a9ea118d5a32eb;p=xonotic%2Fdarkplaces.git 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 --- 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);