(fillin_info): Set `dwBufferSize' to the size of the console buffer.
(clear_screen): Use width of console buffer to calculate how many spaces to
clear.
+Thu Nov 16 15:59:58 2000 Bradley A. Town <townba@pobox.com>
+
+ * fhandler_console.cc: New member variable `dwBufferSize' for `info'.
+ (fillin_info): Set `dwBufferSize' to the size of the console buffer.
+ (clear_screen): Use width of console buffer to calculate how many
+ spaces to clear.
+
Thu Nov 16 15:24:45 2000 Christopher Faylor <cgf@cygnus.com>
* Makefile.in: Make import library creation 'make -j2' friendly.
SHORT winTop;
SHORT winBottom;
COORD dwWinSize;
+ COORD dwBufferSize;
COORD dwCursorPosition;
WORD wAttributes;
} info;
info.winBottom = linfo.srWindow.Bottom;
info.dwWinSize.Y = 1 + linfo.srWindow.Bottom - linfo.srWindow.Top;
info.dwWinSize.X = 1 + linfo.srWindow.Right - linfo.srWindow.Left;
+ info.dwBufferSize = linfo.dwSize;
info.dwCursorPosition = linfo.dwCursorPosition;
info.wAttributes = linfo.wAttributes;
}
if (y2 < 0)
y2 = info.winBottom;
- num = abs (y1 - y2) * info.dwWinSize.X + abs (x1 - x2) + 1;
+ num = abs (y1 - y2) * info.dwBufferSize.X + abs (x1 - x2) + 1;
- if ((y2 * info.dwWinSize.X + x2) > (y1 * info.dwWinSize.X + x1))
+ if ((y2 * info.dwBufferSize.X + x2) > (y1 * info.dwBufferSize.X + x1))
{
tlc.X = x1;
tlc.Y = y1;