From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@yandex.ru header.s=mail header.b=VR1mptKn; spf=pass (domain: yandex.ru, ip: 37.140.190.187, mailfrom: gris87@yandex.ru) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by groups.io with SMTP; Mon, 16 Sep 2019 07:21:57 -0700 Received: from mxback27g.mail.yandex.net (mxback27g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:327]) by forward106o.mail.yandex.net (Yandex) with ESMTP id 966075060EB3; Mon, 16 Sep 2019 17:21:54 +0300 (MSK) Received: from sas2-b0ca3cd64eaa.qloud-c.yandex.net (sas2-b0ca3cd64eaa.qloud-c.yandex.net [2a02:6b8:c14:718c:0:640:b0ca:3cd6]) by mxback27g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id kPx2OvOYTc-Ls7CTJvH; Mon, 16 Sep 2019 17:21:54 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1568643714; bh=eex/4Sg5H2C/Cw5Utpqy3OfK1ySrSi3OdbEK7vbrPUs=; h=Subject:To:From:Cc:Date:Message-Id; b=VR1mptKnLZ/SEUDo0A4zXKJ91nH7Tsp7eynSqo+0BpsflOI2HNOK0D76sYc9PdK4+ 7xDKrr8ueioxyHbJoBD8F8uarwJhS0HiD6TsRZV0QwJzJ/rhCtG38cFSq4UJBD5dcE pOGLY72+1IjEPFykiH4A+JV4x/3WIXz3bAkjly08= Authentication-Results: mxback27g.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by sas2-b0ca3cd64eaa.qloud-c.yandex.net (nwsmtp/Yandex) with ESMTPSA id FpUiSlrZG7-LrI0VEII; Mon, 16 Sep 2019 17:21:53 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) From: Gris87 To: devel@edk2.groups.io Cc: Gris87 , Ruiyu Ni Subject: [PATCH] MdeModulePkg: Add missing sourceX for Blt Date: Mon, 16 Sep 2019 14:21:47 +0000 Message-Id: <583ec11aa07d5f93113237da627d058c5672c322.1568643322.git.Gris87@yandex.ru> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable There is no sourceX offset in case when Configure->PixelFormat =3D=3D PixelBlueGreenRedReserved8BitPerColor. We are copying most left pixels instead of copying required rectangle. Signed-off-by: Gris87 Cc: Ruiyu Ni --- 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 =3D Configure->FrameBuffer + Offset; =20 if (Configure->PixelFormat =3D=3D PixelBlueGreenRedReserved8BitPerCo= lor) { - Source =3D (UINT8 *) BltBuffer + (SrcY * Delta); + Source =3D (UINT8 *) BltBuffer + (SrcY * Delta) + SourceX * sizeof= (EFI_GRAPHICS_OUTPUT_BLT_PIXEL); } else { for (IndexX =3D 0; IndexX < Width; IndexX++) { Blt =3D --=20 2.19.1