changeset 96227:f9eb9f0d6678

(Ffont_face_attributes): Multiply pixel size before point conversion to avoid multiplying rounding error.
author Jason Rumney <jasonr@gnu.org>
date Tue, 24 Jun 2008 10:31:34 +0000
parents 1c73e69fc195
children 39e0a654d387
files src/font.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/font.c	Tue Jun 24 10:31:12 2008 +0000
+++ b/src/font.c	Tue Jun 24 10:31:34 2008 +0000
@@ -3800,7 +3800,7 @@
       Lisp_Object font_dpi = AREF (font, FONT_DPI_INDEX);
       int dpi = INTEGERP (font_dpi) ? XINT (font_dpi) : f->resy;
       plist[n++] = QCheight;
-      plist[n++] = make_number (10 * PIXEL_TO_POINT (XINT (val), dpi));
+      plist[n++] = make_number (PIXEL_TO_POINT (XINT (val) * 10, dpi));
     }
   else if (FLOATP (val))
     {