mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[BOOTVID] Fix screen buffer copying code for PC-98 (#2936)
This commit is contained in:
parent
c87be643f8
commit
e318801c1c
1 changed files with 2 additions and 1 deletions
|
@ -421,7 +421,7 @@ VidScreenToBufferBlt(
|
||||||
ULONG X, Y;
|
ULONG X, Y;
|
||||||
PUCHAR OutputBuffer;
|
PUCHAR OutputBuffer;
|
||||||
USHORT Px;
|
USHORT Px;
|
||||||
PUSHORT PixelsPosition = (PUSHORT)(FrameBuffer + FB_OFFSET(Left, Top));
|
PUSHORT PixelsPosition;
|
||||||
|
|
||||||
/* Clear the destination buffer */
|
/* Clear the destination buffer */
|
||||||
RtlZeroMemory(Buffer, Delta * Height);
|
RtlZeroMemory(Buffer, Delta * Height);
|
||||||
|
@ -429,6 +429,7 @@ VidScreenToBufferBlt(
|
||||||
for (Y = 0; Y < Height; Y++)
|
for (Y = 0; Y < Height; Y++)
|
||||||
{
|
{
|
||||||
OutputBuffer = Buffer + Y * Delta;
|
OutputBuffer = Buffer + Y * Delta;
|
||||||
|
PixelsPosition = (PUSHORT)(FrameBuffer + FB_OFFSET(Left, Top + Y));
|
||||||
|
|
||||||
for (X = 0; X < Width; X += sizeof(USHORT))
|
for (X = 0; X < Width; X += sizeof(USHORT))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue