summaryrefslogtreecommitdiff
path: root/src/font.c
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2008-12-03 05:10:50 +0000
committerChong Yidong <cyd@stupidchicken.com>2008-12-03 05:10:50 +0000
commitd03b5cdb8cc5a71f01a78f1191b4d207472525cd (patch)
tree5377e9dc8f386397480a0a532773a345964b236b /src/font.c
parentd5b01609a019efa84bd51dbb91d616880699eb5c (diff)
downloademacs-d03b5cdb8cc5a71f01a78f1191b4d207472525cd.tar.gz
(Fopen_font): Compute pixel size correctly.
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c2
1 files changed, 1 insertions, 1 deletions
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)