From c1e995d59fd3e624e8b36c5aec3964f53d1a4e09 Mon Sep 17 00:00:00 2001 From: Richard Cohen Date: Wed, 17 Mar 2004 20:48:57 +0000 Subject: [PATCH] Fix relative screen resizing. --- dlls/kernel/console.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/kernel/console.c b/dlls/kernel/console.c index e3328d5436a..f7b431e52c9 100644 --- a/dlls/kernel/console.c +++ b/dlls/kernel/console.c @@ -2085,15 +2085,18 @@ BOOL WINAPI SetConsoleWindowInfo(HANDLE hCon, BOOL bAbsolute, LPSMALL_RECT windo 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) { -- 2.11.4.GIT