mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
MdeModulePkg: Add missing sourceX for Blt
There is no sourceX offset in case when Configure->PixelFormat == PixelBlueGreenRedReserved8BitPerColor. We are copying most left pixels instead of copying required rectangle. Signed-off-by: Gris87 <Gris87@yandex.ru> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Tested-by: Zhichao Gao <zhichao.gao@intel.com> Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
This commit is contained in:
parent
c671c9106c
commit
96301aadc1
@ -504,7 +504,7 @@ FrameBufferBltLibBufferToVideo (
|
|||||||
Destination = Configure->FrameBuffer + Offset;
|
Destination = Configure->FrameBuffer + Offset;
|
||||||
|
|
||||||
if (Configure->PixelFormat == PixelBlueGreenRedReserved8BitPerColor) {
|
if (Configure->PixelFormat == PixelBlueGreenRedReserved8BitPerColor) {
|
||||||
Source = (UINT8 *) BltBuffer + (SrcY * Delta);
|
Source = (UINT8 *) BltBuffer + (SrcY * Delta) + SourceX * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL);
|
||||||
} else {
|
} else {
|
||||||
for (IndexX = 0; IndexX < Width; IndexX++) {
|
for (IndexX = 0; IndexX < Width; IndexX++) {
|
||||||
Blt =
|
Blt =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user