changeset 32730:5d98418d7b78

(dos_set_window_size): Update screen dimension variables.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 21 Oct 2000 18:12:04 +0000
parents 6f56b2193ade
children 736aaa7e3056
files src/msdos.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/msdos.c	Sat Oct 21 18:06:17 2000 +0000
+++ b/src/msdos.c	Sat Oct 21 18:12:04 2000 +0000
@@ -670,6 +670,11 @@
   *rows = ScreenRows ();
   *cols = ScreenCols ();
 
+  /* Update Emacs' notion of screen dimensions.  */
+  screen_size_X = *cols;
+  screen_size_Y = *rows;
+  screen_size = *cols * *rows;
+
 #if __DJGPP__ > 1
   /* If the dimensions changed, the mouse highlight info is invalid.  */
   if (current_rows != *rows || current_cols != *cols)