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>
Destination = Configure->FrameBuffer + Offset;\r
\r
if (Configure->PixelFormat == PixelBlueGreenRedReserved8BitPerColor) {\r
- Source = (UINT8 *) BltBuffer + (SrcY * Delta);\r
+ Source = (UINT8 *) BltBuffer + (SrcY * Delta) + SourceX * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL);\r
} else {\r
for (IndexX = 0; IndexX < Width; IndexX++) {\r
Blt =\r