[cairo-commit] src/cairo-ft-font.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Mar 21 13:50:16 PDT 2013


 src/cairo-ft-font.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 13bd8d09b44e50649f6fc4d58d036bc32c1d5c5b
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Mar 21 16:48:43 2013 -0400

    [ft] I meant fabs(), not abs()

diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 90f410c..1ab56be 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -759,7 +759,7 @@ _compute_transform (cairo_ft_font_transform_t *sf,
 
 	    if ((magnify && distance >= 0) || fabs (distance) <= min_distance) {
 		magnify = distance < 0;
-		min_distance = abs (distance);
+		min_distance = fabs (distance);
 		best_i = i;
 		best_x_size = x_size;
 		best_y_size = y_size;


More information about the cairo-commit mailing list