diff src/frame-msw.c @ 215:1f0dabaa0855 r20-4b6

Import from CVS: tag r20-4b6
author cvs
date Mon, 13 Aug 2007 10:07:35 +0200
parents 78f53ef88e17
children 262b8bb4a523
line wrap: on
line diff
--- a/src/frame-msw.c	Mon Aug 13 10:06:48 2007 +0200
+++ b/src/frame-msw.c	Mon Aug 13 10:07:35 2007 +0200
@@ -68,10 +68,17 @@
   update_frame_face_values (f);
 }
 
-/* Called just before frame's properties are set */
+/* Called just before frame's properties are set, size is 10x10 or something */
 static void
 mswindows_init_frame_2 (struct frame *f, Lisp_Object props)
 {
+  int x, y;
+  Lisp_Object frame, window;
+
+  XSETFRAME (frame, f);
+  default_face_height_and_width (frame, &x, &y);
+  FRAME_PIXWIDTH(f) = x * FRAME_WIDTH(f);
+  FRAME_PIXHEIGHT(f) = y * FRAME_HEIGHT(f);
 }
 
 /* Called after frame's properties are set */