diff options
| author | Geoff Voelker | 1998-10-30 04:22:31 +0000 |
|---|---|---|
| committer | Geoff Voelker | 1998-10-30 04:22:31 +0000 |
| commit | 938469f27d692e57a45753fd96465a481dbca738 (patch) | |
| tree | 9fce72b283d39e47a2c076efb35e3d575aaffc0d | |
| parent | 8929f478f0b7a315e2fc73cce06286737b2a5790 (diff) | |
| download | emacs-938469f27d692e57a45753fd96465a481dbca738.tar.gz emacs-938469f27d692e57a45753fd96465a481dbca738.zip | |
(initialize_w32_display): Use buffer coords
instead of buffer size (which may be larger than the window).
| -rw-r--r-- | src/w32console.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/w32console.c b/src/w32console.c index 635e01aba67..687203025fd 100644 --- a/src/w32console.c +++ b/src/w32console.c | |||
| @@ -571,13 +571,13 @@ initialize_w32_display (void) | |||
| 571 | char_attr = info.wAttributes & 0xFF; | 571 | char_attr = info.wAttributes & 0xFF; |
| 572 | char_attr_normal = char_attr; | 572 | char_attr_normal = char_attr; |
| 573 | char_attr_reverse = ((char_attr & 0xf) << 4) + ((char_attr & 0xf0) >> 4); | 573 | char_attr_reverse = ((char_attr & 0xf) << 4) + ((char_attr & 0xf0) >> 4); |
| 574 | 574 | ||
| 575 | FRAME_HEIGHT (selected_frame) = info.dwSize.Y; /* lines per page */ | 575 | /* Lines per page. Use buffer coords instead of buffer size. */ |
| 576 | SET_FRAME_WIDTH (selected_frame, info.dwSize.X); /* characters per line */ | 576 | FRAME_HEIGHT (selected_frame) = 1 + info.srWindow.Bottom - |
| 577 | 577 | info.srWindow.Top; | |
| 578 | // move_cursor (0, 0); | 578 | /* Characters per line. Use buffer coords instead of buffer size. */ |
| 579 | 579 | SET_FRAME_WIDTH (selected_frame, 1 + info.srWindow.Right - | |
| 580 | // clear_frame (); | 580 | info.srWindow.Left); |
| 581 | } | 581 | } |
| 582 | 582 | ||
| 583 | DEFUN ("set-screen-color", Fset_screen_color, Sset_screen_color, 2, 2, 0, | 583 | DEFUN ("set-screen-color", Fset_screen_color, Sset_screen_color, 2, 2, 0, |