From: handa Date: Tue, 15 Jun 2004 00:35:20 +0000 (+0000) Subject: (null_device_open): Set several members of frame. X-Git-Tag: withdl~95 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=315387cad2ca8796b2835bbb99c48cec74258161;p=m17n%2Fm17n-lib.git (null_device_open): Set several members of frame. --- diff --git a/src/m17n-gui.c b/src/m17n-gui.c index 5ada74b..f603a1b 100644 --- a/src/m17n-gui.c +++ b/src/m17n-gui.c @@ -210,10 +210,18 @@ null_device_fini () static void * null_device_open (MFrame *frame, MPlist *param) { + MFace *face; + frame->device_type = 0; frame->driver = &null_driver; frame->font_driver_list = mplist (); mplist_add (frame->font_driver_list, Mfreetype, &mfont__ft_driver); + frame->realized_font_list = null_device.realized_font_list; + frame->realized_face_list = null_device.realized_face_list; + frame->realized_fontset_list = null_device.realized_fontset_list; + face = mface_copy (mface__default); + mplist_push (param, Mface, face); + M17N_OBJECT_UNREF (face); return &null_device; }