From: divverent Date: Tue, 11 Jan 2011 21:49:22 +0000 (+0000) Subject: fix the latest fix to Font_IndexForSize X-Git-Tag: xonotic-v0.5.0~438^2~145 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=a5994457f2c74657ee504fbec035c7204dcb6b84;hp=cbf5cd9ae812dcdcfc65da44b28d356131c40169 fix the latest fix to Font_IndexForSize git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10696 d7cf8633-e32d-0410-b094-e92efae38249 --- 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;