changeset 69378:45fbf2b25e1a

(WinMain): Set screen buffer to 80x25.
author Jason Rumney <jasonr@gnu.org>
date Sat, 11 Mar 2006 15:02:34 +0000
parents 35ea45c01c62
children 385f9e668650
files nt/runemacs.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
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;