diff options
| author | Eli Zaretskii | 2000-10-21 18:14:15 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2000-10-21 18:14:15 +0000 |
| commit | bed43f1d71d4aef9a026d3617e518c95f33d876f (patch) | |
| tree | 39b18a0a291c774d2ce32d4f77561ce2f650e21d | |
| parent | 34939e2c4a9633da96e8d2e5bf17a8db516afa76 (diff) | |
| download | emacs-bed43f1d71d4aef9a026d3617e518c95f33d876f.tar.gz emacs-bed43f1d71d4aef9a026d3617e518c95f33d876f.zip | |
(dos_set_window_size): Update screen dimension variables.
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/msdos.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8f8cf2b964d..dc694445027 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * msdos.c (dos_set_window_size): Update screen dimension | ||
| 4 | variables. | ||
| 5 | |||
| 1 | 2000-10-21 Jason Rumney <jasonr@gnu.org> | 6 | 2000-10-21 Jason Rumney <jasonr@gnu.org> |
| 2 | 7 | ||
| 3 | * w32term.c (w32_cache_char_metrics): Double check that font is | 8 | * w32term.c (w32_cache_char_metrics): Double check that font is |
diff --git a/src/msdos.c b/src/msdos.c index 1ba98f64a56..f26ddd868a3 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -670,6 +670,11 @@ dos_set_window_size (rows, cols) | |||
| 670 | *rows = ScreenRows (); | 670 | *rows = ScreenRows (); |
| 671 | *cols = ScreenCols (); | 671 | *cols = ScreenCols (); |
| 672 | 672 | ||
| 673 | /* Update Emacs' notion of screen dimensions. */ | ||
| 674 | screen_size_X = *cols; | ||
| 675 | screen_size_Y = *rows; | ||
| 676 | screen_size = *cols * *rows; | ||
| 677 | |||
| 673 | #if __DJGPP__ > 1 | 678 | #if __DJGPP__ > 1 |
| 674 | /* If the dimensions changed, the mouse highlight info is invalid. */ | 679 | /* If the dimensions changed, the mouse highlight info is invalid. */ |
| 675 | if (current_rows != *rows || current_cols != *cols) | 680 | if (current_rows != *rows || current_cols != *cols) |