diff src/frame-msw.c @ 1395:607ad5a2ae95

[xemacs-hg @ 2003-03-31 08:13:20 by mta] frame-msw.c (mswindows_set_frame_size): Call change_frame_size.
author mta
date Mon, 31 Mar 2003 08:13:20 +0000
parents b531bf8658e9
children a8d8f419b459
line wrap: on
line diff
--- a/src/frame-msw.c	Sun Mar 30 21:52:24 2003 +0000
+++ b/src/frame-msw.c	Mon Mar 31 08:13:20 2003 +0000
@@ -337,10 +337,15 @@
 mswindows_set_frame_size (struct frame *f, int width, int height)
 {
   RECT rect;
+  int columns, rows;
+
   rect.left = rect.top = 0;
   rect.right = width;
   rect.bottom = height;
 
+  pixel_to_char_size (f, rect.right, rect.bottom, &columns, &rows);
+  change_frame_size (f, rows, columns, 0);
+
   /* This can call Lisp, because it runs the window procedure, which can
      call redisplay() */
   AdjustWindowRectEx (&rect,