Fix relative screen resizing.

This commit is contained in:
Richard Cohen 2004-03-17 20:48:57 +00:00 committed by Alexandre Julliard
parent b9a12ad3b7
commit c1e995d59f
1 changed files with 5 additions and 2 deletions

View File

@ -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)
{