From: handa Date: Wed, 24 Aug 2005 05:31:13 +0000 (+0000) Subject: (device_open): Check Mresolution param and set X-Git-Tag: REL-1-3-0~236 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=4661cffc8668a169d2ebf4c42dc0d34dd3f728f8;p=m17n%2Fm17n-lib.git (device_open): Check Mresolution param and set frame->dpi. --- diff --git a/src/m17n-gd.c b/src/m17n-gd.c index 58debdb..a583f06 100644 --- a/src/m17n-gd.c +++ b/src/m17n-gd.c @@ -822,6 +822,9 @@ device_open (MFrame *frame, MPlist *param) frame->device = NULL; frame->device_type = MDEVICE_SUPPORT_OUTPUT; + frame->dpi = (int) mplist_get (param, Mresolution); + if (frame->dpi == 0) + frame->dpi = 100; frame->driver = &gd_driver; frame->font_driver_list = mplist (); mplist_add (frame->font_driver_list, Mfreetype, &gd_font_driver);