mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[BOOTVID] Annotate some functions to avoid confusing (#2936)
Also fix some magic constants.
This commit is contained in:
committed by
Stanislav Motylkov
parent
4d54b8ce69
commit
da9384b918
@@ -255,7 +255,7 @@ VidCleanUp(VOID)
|
||||
VOID
|
||||
NTAPI
|
||||
VidScreenToBufferBlt(
|
||||
_Out_ PUCHAR Buffer,
|
||||
_Out_writes_bytes_(Delta * Height) PUCHAR Buffer,
|
||||
_In_ ULONG Left,
|
||||
_In_ ULONG Top,
|
||||
_In_ ULONG Width,
|
||||
|
||||
@@ -51,7 +51,7 @@ BitBlt(
|
||||
_In_ ULONG Top,
|
||||
_In_ ULONG Width,
|
||||
_In_ ULONG Height,
|
||||
_In_ PUCHAR Buffer,
|
||||
_In_reads_bytes_(Delta * Height) PUCHAR Buffer,
|
||||
_In_ ULONG BitsPerPixel,
|
||||
_In_ ULONG Delta)
|
||||
{
|
||||
@@ -318,7 +318,7 @@ VidSetTextColor(
|
||||
VOID
|
||||
NTAPI
|
||||
VidDisplayStringXY(
|
||||
_In_ PUCHAR String,
|
||||
_In_z_ PUCHAR String,
|
||||
_In_ ULONG Left,
|
||||
_In_ ULONG Top,
|
||||
_In_ BOOLEAN Transparent)
|
||||
@@ -368,7 +368,7 @@ VidSetScrollRegion(
|
||||
VOID
|
||||
NTAPI
|
||||
VidDisplayString(
|
||||
_In_ PUCHAR String)
|
||||
_In_z_ PUCHAR String)
|
||||
{
|
||||
/* Start looping the string */
|
||||
for (; *String; ++String)
|
||||
@@ -446,7 +446,7 @@ VidDisplayString(
|
||||
VOID
|
||||
NTAPI
|
||||
VidBufferToScreenBlt(
|
||||
_In_ PUCHAR Buffer,
|
||||
_In_reads_bytes_(Delta * Height) PUCHAR Buffer,
|
||||
_In_ ULONG Left,
|
||||
_In_ ULONG Top,
|
||||
_In_ ULONG Width,
|
||||
|
||||
@@ -331,7 +331,7 @@ VidCleanUp(VOID)
|
||||
VOID
|
||||
NTAPI
|
||||
VidScreenToBufferBlt(
|
||||
_Out_ PUCHAR Buffer,
|
||||
_Out_writes_bytes_(Delta * Height) PUCHAR Buffer,
|
||||
_In_ ULONG Left,
|
||||
_In_ ULONG Top,
|
||||
_In_ ULONG Width,
|
||||
|
||||
@@ -411,7 +411,7 @@ VidResetDisplay(
|
||||
VOID
|
||||
NTAPI
|
||||
VidScreenToBufferBlt(
|
||||
_Out_ PUCHAR Buffer,
|
||||
_Out_writes_bytes_(Delta * Height) PUCHAR Buffer,
|
||||
_In_ ULONG Left,
|
||||
_In_ ULONG Top,
|
||||
_In_ ULONG Width,
|
||||
@@ -430,7 +430,7 @@ VidScreenToBufferBlt(
|
||||
{
|
||||
OutputBuffer = Buffer + Y * Delta;
|
||||
|
||||
for (X = 0; X < Width; X += 2)
|
||||
for (X = 0; X < Width; X += sizeof(USHORT))
|
||||
{
|
||||
Px = READ_REGISTER_USHORT(PixelsPosition++);
|
||||
*OutputBuffer++ = (FIRSTBYTE(Px) << 4) | (SECONDBYTE(Px) & 0x0F);
|
||||
|
||||
@@ -412,7 +412,7 @@ VidSolidColorFill(
|
||||
VOID
|
||||
NTAPI
|
||||
VidScreenToBufferBlt(
|
||||
_Out_ PUCHAR Buffer,
|
||||
_Out_writes_bytes_(Delta * Height) PUCHAR Buffer,
|
||||
_In_ ULONG Left,
|
||||
_In_ ULONG Top,
|
||||
_In_ ULONG Width,
|
||||
@@ -430,7 +430,7 @@ VidScreenToBufferBlt(
|
||||
PUCHAR Buf = Buffer + y * Delta;
|
||||
|
||||
/* Start the X inner loop */
|
||||
for (ULONG x = 0; x < Width; x += 2)
|
||||
for (ULONG x = 0; x < Width; x += sizeof(USHORT))
|
||||
{
|
||||
/* Read the current value */
|
||||
*Buf = (*Back++ & 0xF) << 4;
|
||||
|
||||
@@ -30,7 +30,7 @@ VidSetTextColor(
|
||||
VOID
|
||||
NTAPI
|
||||
VidDisplayStringXY(
|
||||
_In_ PUCHAR String,
|
||||
_In_z_ PUCHAR String,
|
||||
_In_ ULONG Left,
|
||||
_In_ ULONG Top,
|
||||
_In_ BOOLEAN Transparent);
|
||||
@@ -50,7 +50,7 @@ VidCleanUp(VOID);
|
||||
VOID
|
||||
NTAPI
|
||||
VidBufferToScreenBlt(
|
||||
_In_ PUCHAR Buffer,
|
||||
_In_reads_bytes_(Delta * Height) PUCHAR Buffer,
|
||||
_In_ ULONG Left,
|
||||
_In_ ULONG Top,
|
||||
_In_ ULONG Width,
|
||||
@@ -60,7 +60,7 @@ VidBufferToScreenBlt(
|
||||
VOID
|
||||
NTAPI
|
||||
VidDisplayString(
|
||||
_In_ PUCHAR String);
|
||||
_In_z_ PUCHAR String);
|
||||
|
||||
VOID
|
||||
NTAPI
|
||||
@@ -72,7 +72,7 @@ VidBitBlt(
|
||||
VOID
|
||||
NTAPI
|
||||
VidScreenToBufferBlt(
|
||||
_Out_ PUCHAR Buffer,
|
||||
_Out_writes_bytes_(Delta * Height) PUCHAR Buffer,
|
||||
_In_ ULONG Left,
|
||||
_In_ ULONG Top,
|
||||
_In_ ULONG Width,
|
||||
|
||||
Reference in New Issue
Block a user