summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Library
diff options
context:
space:
mode:
authorGris87 <Gris87@yandex.ru>2019-09-16 22:21:47 +0800
committerHao A Wu <hao.a.wu@intel.com>2019-09-25 11:54:53 +0800
commit96301aadc199e3dcd4dec39a8e6257862d1f92c5 (patch)
tree43a8515f72acfca5256003719ac272dcb50d7a43 /MdeModulePkg/Library
parentc671c9106c52f4bd000ab8857eecd19574c70dbd (diff)
downloadedk2-96301aadc199e3dcd4dec39a8e6257862d1f92c5.tar.gz
edk2-96301aadc199e3dcd4dec39a8e6257862d1f92c5.tar.bz2
edk2-96301aadc199e3dcd4dec39a8e6257862d1f92c5.zip
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>
Diffstat (limited to 'MdeModulePkg/Library')
-rw-r--r--MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.c b/MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.c
index 47c5326e99..ff7979c962 100644
--- a/MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.c
+++ b/MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.c
@@ -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 =