diff nt/runemacs.c @ 69378:45fbf2b25e1a

(WinMain): Set screen buffer to 80x25.
author Jason Rumney <jasonr@gnu.org>
date Sat, 11 Mar 2006 15:02:34 +0000
parents 067115a6e738
children 964e568f1d1d a802c5505156
line wrap: on
line diff
--- a/nt/runemacs.c	Sat Mar 11 15:02:13 2006 +0000
+++ b/nt/runemacs.c	Sat Mar 11 15:02:34 2006 +0000
@@ -138,8 +138,12 @@
 
   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;