From: Karl Heuer Date: Wed, 24 Jan 1996 22:33:54 +0000 (+0000) Subject: (change_frame_size_1) [MSDOS]: Support frame size X-Git-Tag: emacs-19.34~1574 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=886a8a6c313f47b8377900bfee60b86a94045356;p=emacs.git (change_frame_size_1) [MSDOS]: Support frame size changing as best as possible. --- diff --git a/src/dispnew.c b/src/dispnew.c index b0e0fb31990..b0ee4066e6f 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -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)