Commit c1e995d5 authored by Richard Cohen's avatar Richard Cohen Committed by Alexandre Julliard

Fix relative screen resizing.

parent b9a12ad3
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment