(Fopen_font): Compute pixel size correctly.

This commit is contained in:
Chong Yidong 2008-12-03 05:10:50 +00:00
parent d5b01609a0
commit d03b5cdb8c

View file

@ -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)