From: handa Date: Wed, 24 Aug 2005 05:31:34 +0000 (+0000) Subject: (null_device_open): Check Mresolution param and set X-Git-Tag: REL-1-3-0~235 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8d32786d811241c02eac0834e9dd549a4daac4a;p=m17n%2Fm17n-lib.git (null_device_open): Check Mresolution param and set frame->dpi. --- diff --git a/src/m17n-gui.c b/src/m17n-gui.c index 6e58efe..22816ed 100644 --- a/src/m17n-gui.c +++ b/src/m17n-gui.c @@ -209,6 +209,9 @@ null_device_open (MFrame *frame, MPlist *param) frame->device = NULL; frame->device_type = 0; + frame->dpi = (int) mplist_get (param, Mresolution); + if (frame->dpi == 0) + frame->dpi = 100; frame->driver = &null_driver; frame->font_driver_list = mplist (); mplist_add (frame->font_driver_list, Mfreetype, &mfont__ft_driver);