winedbg

Eric Pouech eric.pouech at wanadoo.fr
Sun Sep 1 15:06:02 CDT 2002


now that we can store the console parameters for any app, the debugger
now needs its hardcoded console size

A+
-------------- next part --------------
Name:          wd_con
ChangeLog:     removed console sizing at startup
License:       X11
GenDate:       2002/09/01 20:05:07 UTC
ModifiedFiles: debugger/winedbg.c
AddedFiles:    
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/debugger/winedbg.c,v
retrieving revision 1.65
diff -u -u -r1.65 winedbg.c
--- debugger/winedbg.c	28 Aug 2002 22:21:20 -0000	1.65
+++ debugger/winedbg.c	1 Sep 2002 20:04:00 -0000
@@ -957,8 +957,6 @@
 
 static void DEBUG_InitConsole(void)
 {
-    COORD	c;
-    SMALL_RECT	sr;
     DWORD	mode;
 
     /* keep it as a cuiexe for now, so that Wine won't touch the Unix stdin,
@@ -970,24 +968,15 @@
 	AllocConsole();
     }
 
-    /* this would be nicer for output */
-    c.X = 132;
-    c.Y = 500;
-    SetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE), c);
-
-    /* sets the console's window width accordingly */
-    sr.Left   = 0;
-    sr.Top    = 0;
-    sr.Right  = c.X - 1;
-    sr.Bottom = 50;
-    SetConsoleWindowInfo(GetStdHandle(STD_OUTPUT_HANDLE), TRUE, &sr);
-
     /* put the line editing mode with the nice emacs features (FIXME: could be triggered by a IVAR) */
     if (GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), &mode))
         SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), mode | WINE_ENABLE_LINE_INPUT_EMACS);
 
     /* set our control-C handler */
     SetConsoleCtrlHandler(DEBUG_CtrlCHandler, TRUE);
+
+    /* set our own title */
+    SetConsoleTitle("Wine Debugger");
 }
 
 static int DEBUG_Usage(void)


More information about the wine-patches mailing list