[console02] Copy & Paste-o in console.c

Richard Cohen richard at daijobu.co.uk
Wed Mar 17 07:10:11 CST 2004


Helps Borland TurboDebugger a lot. With USER backend it was starting in 
a really small window.

Changelog
	Fix relative screen resizing.

-------------- next part --------------
diff -u -r dlls/kernel.01/console.c dlls/kernel/console.c
--- dlls/kernel.01/console.c	2004-03-17 11:44:33.000000000 +0000
+++ dlls/kernel/console.c	2004-03-17 12:01:59.000000000 +0000
@@ -2106,15 +2106,18 @@
     SMALL_RECT	p = *window;
     BOOL	ret;
 
+    TRACE("(%p,%d,(%d,%d-%d,%d))\n", hCon, bAbsolute, p.Left, p.Top, p.Right, p.Bottom);
+
     if (!bAbsolute)
     {
 	CONSOLE_SCREEN_BUFFER_INFO	csbi;
+
 	if (!GetConsoleScreenBufferInfo(hCon, &csbi))
 	    return FALSE;
 	p.Left   += csbi.srWindow.Left;
 	p.Top    += csbi.srWindow.Top;
-	p.Right  += csbi.srWindow.Left;
-	p.Bottom += csbi.srWindow.Top;
+	p.Right  += csbi.srWindow.Right;
+	p.Bottom += csbi.srWindow.Bottom;
     }
     SERVER_START_REQ(set_console_output_info)
     {


More information about the wine-patches mailing list