changeset 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 e1dfb4fa8623
children 198157491e70
files src/ChangeLog src/frame-msw.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Mar 30 21:52:24 2003 +0000
+++ b/src/ChangeLog	Mon Mar 31 08:13:20 2003 +0000
@@ -1,3 +1,7 @@
+2003-03-31  Mike Alexander  <mta@arbortext.com>
+
+	* frame-msw.c (mswindows_set_frame_size): Call change_frame_size.
+
 2003-03-25  Jerry James  <james@xemacs.org>
 
 	* config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
--- 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,