changeset 100165:7add351b47c9

(Fopen_font): Compute pixel size correctly.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 03 Dec 2008 05:10:50 +0000
parents 8234dff2e505
children 03bc92681181
files src/font.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/font.c	Wed Dec 03 05:10:33 2008 +0000
+++ b/src/font.c	Wed Dec 03 05:10:50 2008 +0000
@@ -4480,7 +4480,7 @@
     {
       CHECK_NUMBER_OR_FLOAT (size);
       if (FLOATP (size))
-	isize = POINT_TO_PIXEL (- isize, XFRAME (frame)->resy);
+	isize = POINT_TO_PIXEL (XFLOAT_DATA (size), XFRAME (frame)->resy);
       else
 	isize = XINT (size);
       if (isize == 0)