]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a data type in Font_IndexForSize
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 11 Jan 2011 21:40:57 +0000 (21:40 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 11 Jan 2011 21:40:57 +0000 (21:40 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10695 d7cf8633-e32d-0410-b094-e92efae38249

ft2.c

diff --git a/ft2.c b/ft2.c
index 790f79989448d3afe650503a5dfb21a513f44ec8..b6a72513dcc1fee5f4f6e1e37183e4e9dda2be69 100644 (file)
--- a/ft2.c
+++ b/ft2.c
@@ -799,8 +799,8 @@ static qboolean Font_LoadSize(ft2_font_t *font, float size, qboolean check_only)
 int Font_IndexForSize(ft2_font_t *font, float _fsize, float *outw, float *outh)
 {
        int match = -1;
-       int value = 1000000;
-       int nval;
+       float value = 1000000;
+       float nval;
        int matchsize = -10000;
        int m;
        float fsize_x, fsize_y;