From 886a8a6c313f47b8377900bfee60b86a94045356 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 24 Jan 1996 22:33:54 +0000 Subject: [PATCH] (change_frame_size_1) [MSDOS]: Support frame size changing as best as possible. --- src/dispnew.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- 2.39.2