mirror of https://github.com/acidanthera/audk.git
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;
|
||||
|
||||
if (Configure->PixelFormat == PixelBlueGreenRedReserved8BitPerColor) {
|
||||
Source = (UINT8 *) BltBuffer + (SrcY * Delta);
|
||||
Source = (UINT8 *) BltBuffer + (SrcY * Delta) + SourceX * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL);
|
||||
} else {
|
||||
for (IndexX = 0; IndexX < Width; IndexX++) {
|
||||
Blt =
|
||||
|
|
Loading…
Reference in New Issue