From a5994457f2c74657ee504fbec035c7204dcb6b84 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 11 Jan 2011 21:49:22 +0000 Subject: [PATCH] fix the latest fix to Font_IndexForSize git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10696 d7cf8633-e32d-0410-b094-e92efae38249 --- ft2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ft2.c b/ft2.c index b6a72513..782a185f 100644 --- a/ft2.c +++ b/ft2.c @@ -830,7 +830,7 @@ int Font_IndexForSize(ft2_font_t *font, float _fsize, float *outw, float *outh) if (!maps[m]) continue; // "round up" to the bigger size if two equally-valued matches exist - nval = 0.5 * (abs(maps[m]->size - fsize_x) + abs(maps[m]->size - fsize_y)); + nval = 0.5 * (fabs(maps[m]->size - fsize_x) + fabs(maps[m]->size - fsize_y)); if (match == -1 || nval < value || (nval == value && matchsize < maps[m]->size)) { value = nval; -- 2.39.2