diff options
| author | Geoff Voelker | 1995-05-26 05:26:51 +0000 |
|---|---|---|
| committer | Geoff Voelker | 1995-05-26 05:26:51 +0000 |
| commit | e312961bb6f50eb3a4f2ad70557081d55cf05db4 (patch) | |
| tree | 91a3b665a40c54774bf892f02c78228157d93038 /src | |
| parent | bd4a449f55414ff24e048de268ec50f538857a64 (diff) | |
| download | emacs-e312961bb6f50eb3a4f2ad70557081d55cf05db4.tar.gz emacs-e312961bb6f50eb3a4f2ad70557081d55cf05db4.zip | |
(set_terminal_modes): Set cursor size appropriate for Win95.
(write_glyphs): Don't memset attrs, which is a word array.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32console.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/w32console.c b/src/w32console.c index 95d54a8c204..9973fe41b3d 100644 --- a/src/w32console.c +++ b/src/w32console.c | |||
| @@ -383,7 +383,8 @@ write_glyphs (register GLYPH *string, register int len) | |||
| 383 | len = ptr-chars; | 383 | len = ptr-chars; |
| 384 | 384 | ||
| 385 | /* Fill in the attributes for these characters. */ | 385 | /* Fill in the attributes for these characters. */ |
| 386 | memset (attrs, char_attr, len*sizeof (*attrs)); | 386 | for (i = 0; i < len; i++) |
| 387 | attrs[i] = char_attr; | ||
| 387 | 388 | ||
| 388 | /* Write the attributes. */ | 389 | /* Write the attributes. */ |
| 389 | if (!WriteConsoleOutputAttribute (cur_screen, attrs, len, cursor_coords, &i)) | 390 | if (!WriteConsoleOutputAttribute (cur_screen, attrs, len, cursor_coords, &i)) |
| @@ -490,8 +491,8 @@ set_terminal_modes (void) | |||
| 490 | 491 | ||
| 491 | SetConsoleActiveScreenBuffer (cur_screen); | 492 | SetConsoleActiveScreenBuffer (cur_screen); |
| 492 | 493 | ||
| 493 | /* make cursor big and visible */ | 494 | /* make cursor big and visible (100 on Win95 makes it disappear) */ |
| 494 | cci.dwSize = 100; | 495 | cci.dwSize = 99; |
| 495 | cci.bVisible = TRUE; | 496 | cci.bVisible = TRUE; |
| 496 | (void) SetConsoleCursorInfo (cur_screen, &cci); | 497 | (void) SetConsoleCursorInfo (cur_screen, &cci); |
| 497 | } | 498 | } |