From: Jason Rumney Date: Sat, 11 Mar 2006 15:02:34 +0000 (+0000) Subject: (WinMain): Set screen buffer to 80x25. X-Git-Tag: emacs-pretest-22.0.90~3698 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3bb69bbdbab33bb301d7b60271c0cdb410485206;p=emacs.git (WinMain): Set screen buffer to 80x25. --- 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;