From 315387cad2ca8796b2835bbb99c48cec74258161 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 15 Jun 2004 00:35:20 +0000 Subject: [PATCH] (null_device_open): Set several members of frame. --- src/m17n-gui.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } -- 1.7.10.4