(change_frame_size_1) [MSDOS]: Support frame size
authorKarl Heuer <kwzh@gnu.org>
Wed, 24 Jan 1996 22:33:54 +0000 (22:33 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 24 Jan 1996 22:33:54 +0000 (22:33 +0000)
changing as best as possible.

src/dispnew.c

index b0e0fb3..b0ee406 100644 (file)
@@ -2145,6 +2145,13 @@ change_frame_size_1 (frame, newheight, newwidth, pretend, delay)
       && newwidth == FRAME_WIDTH (frame))
     return;
 
+#ifdef MSDOS
+  /* We only can set screen dimensions to certain values supported
+     by our video hardware.  Try to find the smallest size greater
+     or equal to the requested dimensions.  */
+  dos_set_window_size (&newheight, &newwidth);
+#endif
+
   if (newheight != FRAME_HEIGHT (frame))
     {
       if (FRAME_HAS_MINIBUF_P (frame)