mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcBlitLib: Fix broken optimisation (not working with max w blits at 0)
This commit is contained in:
parent
3c283f662a
commit
bfbe8037f6
@ -241,8 +241,8 @@ BlitLibBufferToVideo270 (
|
||||
DestinationWalker = Destination;
|
||||
SourceWalker = Source;
|
||||
LastX = Configure->Height - DestinationX - 1;
|
||||
for (IndexX = LastX; IndexX > LastX - Width; IndexX--) {
|
||||
DestinationWalker[IndexX * PixelsPerScanLine] = *SourceWalker++;
|
||||
for (IndexX = 0; IndexX < Width; IndexX++) {
|
||||
DestinationWalker[(LastX - IndexX) * PixelsPerScanLine] = *SourceWalker++;
|
||||
}
|
||||
Source += DeltaPixels;
|
||||
Destination++;
|
||||
@ -253,9 +253,9 @@ BlitLibBufferToVideo270 (
|
||||
DestinationWalker = Destination;
|
||||
SourceWalker = Source;
|
||||
LastX = Configure->Height - DestinationX - 1;
|
||||
for (IndexX = LastX; IndexX > LastX - Width; IndexX--) {
|
||||
for (IndexX = 0; IndexX < Width; IndexX++) {
|
||||
Uint32 = *SourceWalker++;
|
||||
DestinationWalker[IndexX * PixelsPerScanLine] =
|
||||
DestinationWalker[(LastX - IndexX) * PixelsPerScanLine] =
|
||||
(UINT32) (
|
||||
(((Uint32 << Configure->PixelShl[0]) >> Configure->PixelShr[0]) &
|
||||
Configure->PixelMasks.RedMask) |
|
||||
|
||||
@ -241,8 +241,8 @@ BlitLibVideoToBuffer270 (
|
||||
DestinationWalker = Destination;
|
||||
SourceWalker = Source;
|
||||
LastX = Configure->Height - SourceX - 1;
|
||||
for (IndexX = LastX; IndexX > LastX - Width; IndexX--) {
|
||||
*DestinationWalker++ = SourceWalker[IndexX * PixelsPerScanLine];
|
||||
for (IndexX = 0; IndexX < Width; IndexX++) {
|
||||
*DestinationWalker++ = SourceWalker[(LastX - IndexX) * PixelsPerScanLine];
|
||||
}
|
||||
Source++;
|
||||
Destination += DeltaPixels;
|
||||
@ -253,8 +253,8 @@ BlitLibVideoToBuffer270 (
|
||||
DestinationWalker = Destination;
|
||||
SourceWalker = Source;
|
||||
LastX = Configure->Height - SourceX - 1;
|
||||
for (IndexX = LastX; IndexX > LastX - Width; IndexX--) {
|
||||
Uint32 = SourceWalker[IndexX * PixelsPerScanLine];
|
||||
for (IndexX = 0; IndexX < Width; IndexX++) {
|
||||
Uint32 = SourceWalker[(LastX - IndexX) * PixelsPerScanLine];
|
||||
*DestinationWalker++ =
|
||||
(UINT32) (
|
||||
(((Uint32 << Configure->PixelShl[0]) >> Configure->PixelShr[0]) &
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user