]> git.eshelyaron.com Git - emacs.git/commitdiff
(WinMain): Set screen buffer to 80x25.
authorJason Rumney <jasonr@gnu.org>
Sat, 11 Mar 2006 15:02:34 +0000 (15:02 +0000)
committerJason Rumney <jasonr@gnu.org>
Sat, 11 Mar 2006 15:02:34 +0000 (15:02 +0000)
nt/runemacs.c

index a998134ec72f5f1d042250c7d1d2c1fce39500a2..c43c7b61366f346bf3faa70ff45689def0b24ffc 100644 (file)
@@ -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;