aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1996-01-24 22:33:54 +0000
committerKarl Heuer1996-01-24 22:33:54 +0000
commit886a8a6c313f47b8377900bfee60b86a94045356 (patch)
tree2c82794953822e1d9f93dd0e51b3114e70b99ba7 /src
parent9a4a6c037ae88b215640d771b0cc26f6a8491074 (diff)
downloademacs-886a8a6c313f47b8377900bfee60b86a94045356.tar.gz
emacs-886a8a6c313f47b8377900bfee60b86a94045356.zip
(change_frame_size_1) [MSDOS]: Support frame size
changing as best as possible.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c7
1 files changed, 7 insertions, 0 deletions
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)
2145 && newwidth == FRAME_WIDTH (frame)) 2145 && newwidth == FRAME_WIDTH (frame))
2146 return; 2146 return;
2147 2147
2148#ifdef MSDOS
2149 /* We only can set screen dimensions to certain values supported
2150 by our video hardware. Try to find the smallest size greater
2151 or equal to the requested dimensions. */
2152 dos_set_window_size (&newheight, &newwidth);
2153#endif
2154
2148 if (newheight != FRAME_HEIGHT (frame)) 2155 if (newheight != FRAME_HEIGHT (frame))
2149 { 2156 {
2150 if (FRAME_HAS_MINIBUF_P (frame) 2157 if (FRAME_HAS_MINIBUF_P (frame)