(null_device_open): Set several members of frame.
authorhanda <handa>
Tue, 15 Jun 2004 00:35:20 +0000 (00:35 +0000)
committerhanda <handa>
Tue, 15 Jun 2004 00:35:20 +0000 (00:35 +0000)
src/m17n-gui.c

index 5ada74b..f603a1b 100644 (file)
@@ -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;
 }