mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
- various msvc compability fixes
- 2 errors remaining: conio.c(2104) : error C2065: 'CONSOLE_INPUT_MODE_VALID' : undeclared identifier conio.c(2108) : error C2065: 'CONSOLE_OUTPUT_MODE_VALID' : undeclared identifier those two constants should be moved into the NDK(declared in wincon.h)... svn path=/trunk/; revision=24993
This commit is contained in:
parent
6714832496
commit
a76f1549b6
1 changed files with 14 additions and 13 deletions
|
@ -13,9 +13,6 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
/* FIXME: Is there a way to create real aliasses with gcc? [CSH] */
|
|
||||||
#define ALIAS(Name, Target) typeof(Target) Name = Target
|
|
||||||
|
|
||||||
/* GLOBALS *******************************************************************/
|
/* GLOBALS *******************************************************************/
|
||||||
|
|
||||||
#define ConioInitRect(Rect, Top, Left, Bottom, Right) \
|
#define ConioInitRect(Rect, Top, Left, Bottom, Right) \
|
||||||
|
@ -110,7 +107,7 @@ CsrInitConsoleScreenBuffer(PCSRSS_CONSOLE Console,
|
||||||
Buffer->Header.ReferenceCount = 0;
|
Buffer->Header.ReferenceCount = 0;
|
||||||
Buffer->ShowX = 0;
|
Buffer->ShowX = 0;
|
||||||
Buffer->ShowY = 0;
|
Buffer->ShowY = 0;
|
||||||
Buffer->Buffer = HeapAlloc(Win32CsrApiHeap, HEAP_ZERO_MEMORY, Buffer->MaxX * Buffer->MaxY * sizeof(WCHAR));
|
Buffer->Buffer = HeapAlloc(Win32CsrApiHeap, HEAP_ZERO_MEMORY, Buffer->MaxX * Buffer->MaxY * 2);
|
||||||
if (NULL == Buffer->Buffer)
|
if (NULL == Buffer->Buffer)
|
||||||
{
|
{
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
@ -721,7 +718,7 @@ ConioPhysicalToLogical(PCSRSS_SCREEN_BUFFER Buff,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inline BOOLEAN ConioIsEqualRect(
|
BOOLEAN __inline ConioIsEqualRect(
|
||||||
RECT *Rect1,
|
RECT *Rect1,
|
||||||
RECT *Rect2)
|
RECT *Rect2)
|
||||||
{
|
{
|
||||||
|
@ -729,7 +726,7 @@ inline BOOLEAN ConioIsEqualRect(
|
||||||
(Rect1->top == Rect2->top) && (Rect1->bottom == Rect2->bottom));
|
(Rect1->top == Rect2->top) && (Rect1->bottom == Rect2->bottom));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline BOOLEAN ConioGetIntersection(
|
BOOLEAN __inline ConioGetIntersection(
|
||||||
RECT *Intersection,
|
RECT *Intersection,
|
||||||
RECT *Rect1,
|
RECT *Rect1,
|
||||||
RECT *Rect2)
|
RECT *Rect2)
|
||||||
|
@ -755,7 +752,7 @@ inline BOOLEAN ConioGetIntersection(
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline BOOLEAN ConioGetUnion(
|
BOOLEAN __inline ConioGetUnion(
|
||||||
RECT *Union,
|
RECT *Union,
|
||||||
RECT *Rect1,
|
RECT *Rect1,
|
||||||
RECT *Rect2)
|
RECT *Rect2)
|
||||||
|
@ -788,7 +785,7 @@ inline BOOLEAN ConioGetUnion(
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline BOOLEAN ConioSubtractRect(
|
BOOLEAN __inline ConioSubtractRect(
|
||||||
RECT *Subtraction,
|
RECT *Subtraction,
|
||||||
RECT *Rect1,
|
RECT *Rect1,
|
||||||
RECT *Rect2)
|
RECT *Rect2)
|
||||||
|
@ -1519,7 +1516,7 @@ CSR_API(CsrSetCursor)
|
||||||
return Request->Status = STATUS_SUCCESS;
|
return Request->Status = STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FASTCALL VOID
|
static VOID FASTCALL
|
||||||
ConioComputeUpdateRect(PCSRSS_SCREEN_BUFFER Buff, RECT *UpdateRect, COORD *Start, UINT Length)
|
ConioComputeUpdateRect(PCSRSS_SCREEN_BUFFER Buff, RECT *UpdateRect, COORD *Start, UINT Length)
|
||||||
{
|
{
|
||||||
if (Buff->MaxX <= Start->X + Length)
|
if (Buff->MaxX <= Start->X + Length)
|
||||||
|
@ -2527,13 +2524,17 @@ CSR_API(CsrScrollConsoleScreenBuffer)
|
||||||
RECT ClipRectangle;
|
RECT ClipRectangle;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
BOOLEAN DoFill;
|
BOOLEAN DoFill;
|
||||||
|
HANDLE ConsoleHandle;
|
||||||
|
BOOLEAN UseClipRectangle;
|
||||||
|
COORD DestinationOrigin;
|
||||||
|
CHAR_INFO Fill;
|
||||||
|
|
||||||
DPRINT("CsrScrollConsoleScreenBuffer\n");
|
DPRINT("CsrScrollConsoleScreenBuffer\n");
|
||||||
|
|
||||||
ALIAS(ConsoleHandle,Request->Data.ScrollConsoleScreenBufferRequest.ConsoleHandle);
|
ConsoleHandle = Request->Data.ScrollConsoleScreenBufferRequest.ConsoleHandle;
|
||||||
ALIAS(UseClipRectangle,Request->Data.ScrollConsoleScreenBufferRequest.UseClipRectangle);
|
UseClipRectangle = Request->Data.ScrollConsoleScreenBufferRequest.UseClipRectangle;
|
||||||
ALIAS(DestinationOrigin,Request->Data.ScrollConsoleScreenBufferRequest.DestinationOrigin);
|
DestinationOrigin = Request->Data.ScrollConsoleScreenBufferRequest.DestinationOrigin;
|
||||||
ALIAS(Fill,Request->Data.ScrollConsoleScreenBufferRequest.Fill);
|
Fill = Request->Data.ScrollConsoleScreenBufferRequest.Fill;
|
||||||
|
|
||||||
Status = ConioConsoleFromProcessData(ProcessData, &Console);
|
Status = ConioConsoleFromProcessData(ProcessData, &Console);
|
||||||
if (! NT_SUCCESS(Status))
|
if (! NT_SUCCESS(Status))
|
||||||
|
|
Loading…
Reference in a new issue