+ Zhichao for review. > -----Original Message----- > From: Gris87 <[email protected]> > Sent: Monday, September 16, 2019 7:22 AM > To: [email protected] > Cc: Gris87 <[email protected]>; Ni, Ray <[email protected]> > Subject: [PATCH] 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 <[email protected]> > Cc: Ruiyu Ni <[email protected]> > --- > MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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 = > -- > 2.19.1
-=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#47303): https://edk2.groups.io/g/devel/message/47303 Mute This Topic: https://groups.io/mt/34168097/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
