]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
again, a stupid fix for stupid MSVC not supporting a 11 years old C standard
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 1 Jan 2010 13:57:28 +0000 (13:57 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 1 Jan 2010 13:57:28 +0000 (13:57 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9764 d7cf8633-e32d-0410-b094-e92efae38249

ft2.c

diff --git a/ft2.c b/ft2.c
index 420cc3864155c924c785ece568a69cb359b2743e..1e31dc4fa07054b5a45414d399253b9ad34cbd2c 100644 (file)
--- 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);