Author: jmorlan
Date: Mon May 24 02:04:56 2010
New Revision: 47337
URL:
http://svn.reactos.org/svn/reactos?rev=47337&view=rev
Log:
[WIN32CSR] fix tuiconsole
Modified:
trunk/reactos/subsystems/win32/csrss/win32csr/tuiconsole.c
Modified: trunk/reactos/subsystems/win32/csrss/win32csr/tuiconsole.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/win…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/win32csr/tuiconsole.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/win32csr/tuiconsole.c [iso-8859-1] Mon May 24
02:04:56 2010
@@ -124,17 +124,17 @@
}
static void FASTCALL
-TuiCopyRect(char *Dest, PCSRSS_SCREEN_BUFFER Buff, RECT *Region)
+TuiCopyRect(char *Dest, PCSRSS_SCREEN_BUFFER Buff, SMALL_RECT *Region)
{
UINT SrcDelta, DestDelta;
LONG i;
PBYTE Src, SrcEnd;
- Src = ConioCoordToPointer(Buff, Region->left, Region->top);
+ Src = ConioCoordToPointer(Buff, Region->Left, Region->Top);
SrcDelta = Buff->MaxX * 2;
SrcEnd = Buff->Buffer + Buff->MaxY * Buff->MaxX * 2;
DestDelta = ConioRectWidth(Region) * 2;
- for (i = Region->top; i <= Region->bottom; i++)
+ for (i = Region->Top; i <= Region->Bottom; i++)
{
memcpy(Dest, Src, DestDelta);
Src += SrcDelta;
@@ -147,7 +147,7 @@
}
static VOID WINAPI
-TuiDrawRegion(PCSRSS_CONSOLE Console, RECT *Region)
+TuiDrawRegion(PCSRSS_CONSOLE Console, SMALL_RECT *Region)
{
DWORD BytesReturned;
PCSRSS_SCREEN_BUFFER Buff = Console->ActiveBuffer;
@@ -167,8 +167,8 @@
DPRINT1("HeapAlloc failed\n");
return;
}
- ConsoleDraw->X = Region->left;
- ConsoleDraw->Y = Region->top;
+ ConsoleDraw->X = Region->Left;
+ ConsoleDraw->Y = Region->Top;
ConsoleDraw->SizeX = ConioRectWidth(Region);
ConsoleDraw->SizeY = ConioRectHeight(Region);
ConsoleDraw->CursorX = Buff->CurrentX;
@@ -188,7 +188,7 @@
}
static VOID WINAPI
-TuiWriteStream(PCSRSS_CONSOLE Console, RECT *Region, LONG CursorStartX, LONG
CursorStartY,
+TuiWriteStream(PCSRSS_CONSOLE Console, SMALL_RECT *Region, LONG CursorStartX, LONG
CursorStartY,
UINT ScrolledLines, CHAR *Buffer, UINT Length)
{
DWORD BytesWritten;