diff options
author | Jason Rumney <jasonr@gnu.org> | 2006-03-11 15:02:34 +0000 |
---|---|---|
committer | Jason Rumney <jasonr@gnu.org> | 2006-03-11 15:02:34 +0000 |
commit | 3bb69bbdbab33bb301d7b60271c0cdb410485206 (patch) | |
tree | e599bc7b1522e849244c5380aac0d8362243b513 /nt/runemacs.c | |
parent | f71d8cffc73c3a44086ce31c40abb378fd2c0350 (diff) | |
download | emacs-3bb69bbdbab33bb301d7b60271c0cdb410485206.tar.gz |
(WinMain): Set screen buffer to 80x25.
Diffstat (limited to 'nt/runemacs.c')
-rw-r--r-- | nt/runemacs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nt/runemacs.c b/nt/runemacs.c index a998134ec72..c43c7b61366 100644 --- a/nt/runemacs.c +++ b/nt/runemacs.c @@ -138,8 +138,12 @@ WinMain (HINSTANCE hSelf, HINSTANCE hPrev, LPSTR cmdline, int nShow) memset (&start, 0, sizeof (start)); start.cb = sizeof (start); - start.dwFlags = STARTF_USESHOWWINDOW; + start.dwFlags = STARTF_USESHOWWINDOW | STARTF_USECOUNTCHARS; start.wShowWindow = SW_HIDE; + /* Ensure that we don't waste memory if the user has specified a huge + default screen buffer for command windows. */ + start.dwXCountChars = 80; + start.dwYCountChars = 25; sec_attrs.nLength = sizeof (sec_attrs); sec_attrs.lpSecurityDescriptor = NULL; |