From: Chong Yidong Date: Wed, 3 Dec 2008 05:10:50 +0000 (+0000) Subject: (Fopen_font): Compute pixel size correctly. X-Git-Tag: emacs-pretest-23.0.90~1323 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d03b5cdb8cc5a71f01a78f1191b4d207472525cd;p=emacs.git (Fopen_font): Compute pixel size correctly. --- diff --git a/src/font.c b/src/font.c index ce7091313f6..b933007f40c 100644 --- a/src/font.c +++ b/src/font.c @@ -4480,7 +4480,7 @@ DEFUN ("open-font", Fopen_font, Sopen_font, 1, 3, 0, { 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)