From nobody Thu Mar 28 15:03:46 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+47970+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+47970+1787277+3901457@groups.io; arc=fail; dmarc=fail(p=none dis=none) header.from=outlook.com Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1569345821610547.7154055768112; Tue, 24 Sep 2019 10:23:41 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id TylPYY1788612xEuaYFmAREw; Tue, 24 Sep 2019 10:23:41 -0700 X-Received: from EUR01-VE1-obe.outbound.protection.outlook.com (EUR01-VE1-obe.outbound.protection.outlook.com [40.92.66.100]) by groups.io with SMTP; Tue, 24 Sep 2019 05:46:17 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lIaxdlcTr1OEsv6FsDBq2VsxFu8PpuJndkU8FKYs1vkY7Fxb2IGr5cRTYFJMrZgS5tgaasLuV7f6+rklD6flcYom0NTkFeSJH83E6+F33TeLok84pa3uH8mxI8y/bJxGMTI4vJNqlZdGoZYpkXwh7qa7kN5mEM/HorR7ilRQ3Y2GMP4/I7YCmnqW8+xdgnKEIDJGq2MftlO7AuXKYU8T4GXlkbgL8WEG02fjQZ5T78+B6jw796PXu7PPwXMe+udf9ExZvyRNPH25WMExk9nUso9soWXOGsUUVphciuiqL6bKXEbr+oKGylxykH5K6J+qlzSaX9XZ02aQ/EGKhwdyug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UPc2PQSPtb0DW5YlQw9IIrbIGIyZ4WQEsNX05OC5GEI=; b=gq5JkhFfmk9b8wkzmOVHjbTHwmVfESRPtKFQR31e+nKQwcV0DjwT1DPrQMaVR+sQInc1KwkkrgfR1BOGirdQ4bUMEKgwiGY5xdKyjn/9fhpnc9nMYkqp5yivc2ckEZY1bdj2BS6UTZy8a3al4MTUsZdkkD9v0XYZs5yc4ipSuZpBJFlQQ4ILVXIYKBYiCrnhY58ATdKif/27FgkIbeoIaT1rKFvEcTtF3inJURTbxNpOkK24xVQusBjPgMq4XqXgMswyt6YU7RP6unvlYRd/9RgV6nQvYkhL+v8+S/7MI/7TAxiZgb6Io8JHivxbOqhQxrdSVRm9aYALBxSYxWEwfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none X-Received: from DB5EUR01FT038.eop-EUR01.prod.protection.outlook.com (10.152.4.60) by DB5EUR01HT180.eop-EUR01.prod.protection.outlook.com (10.152.4.175) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2284.20; Tue, 24 Sep 2019 12:46:14 +0000 X-Received: from AM0PR07MB4386.eurprd07.prod.outlook.com (10.152.4.60) by DB5EUR01FT038.mail.protection.outlook.com (10.152.4.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.20 via Frontend Transport; Tue, 24 Sep 2019 12:46:14 +0000 X-Received: from AM0PR07MB4386.eurprd07.prod.outlook.com ([fe80::6056:53c8:6f16:3d8]) by AM0PR07MB4386.eurprd07.prod.outlook.com ([fe80::6056:53c8:6f16:3d8%3]) with mapi id 15.20.2305.013; Tue, 24 Sep 2019 12:46:14 +0000 From: =?iso-8859-1?Q?Marvin_H=E4user?= To: "devel@edk2.groups.io" CC: Jian J Wang , Hao A Wu Subject: [edk2-devel] [PATCH] MdeModulePkg/FrameBufferBltLib: Correctly consider SourceX Thread-Topic: [PATCH] MdeModulePkg/FrameBufferBltLib: Correctly consider SourceX Thread-Index: AQHVctYMgCwkp9D70UqlPjNJoZy/TA== Date: Tue, 24 Sep 2019 12:46:14 +0000 Message-ID: Accept-Language: de-DE, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: PR1PR01CA0027.eurprd01.prod.exchangelabs.com (2603:10a6:102::40) To AM0PR07MB4386.eurprd07.prod.outlook.com (2603:10a6:208:b3::11) x-incomingtopheadermarker: OriginalChecksum:F470255280D74CC8D02B9933DE45D0A1DD32B05B744D129429D6608FF94C41BC;UpperCasedChecksum:BAA843AA5CA0920CC34F8074361A26B0EA3A6928A9270262E1DF6A2DF515BECA;SizeAsReceived:7500;Count:49 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [jDcEqOdkcYubuGMn8uRrZT0ICSdMcbEA] x-microsoft-original-message-id: x-ms-publictraffictype: Email x-incomingheadercount: 49 x-eopattributedmessage: 0 x-ms-traffictypediagnostic: DB5EUR01HT180: x-microsoft-antispam-message-info: t5H1DXZmjwN+wpVt54ACs57AADkq7BN9QSTUnUMo0JV7pJVhttXDV2ke3MtpjJihPzPJD9Rqqa9/ML668t5eE/HB+8RM9eJDcYhq0B/HJqlDdGnZ4aRrCx8mwH4pBxsAO9r+ryJBjmJzbiL6kWHVTeYHiViVz7gOPYDojhWVTsfkudpP0qUO+Uye+E2vSdK3 x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: aac13800-6475-44f0-c474-08d740ed2efe X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Sep 2019 12:46:14.1476 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT180 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,Marvin.Haeuser@outlook.com X-Gm-Message-State: G7qU1FLHqdjkFzy5fX8P5f6qx1787277AA= Content-Language: en-US Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1569345821; bh=9R2ZubbigedFvZE8yEfV6GP5bRvoBUC4D6oAEjaDtU0=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=V7KdkUdKBaL40jBt91iDNztz/su7pmjFKjcmfju/WGMoQyU5iCWScK4UdI+XYq33zZK 0QPZGi2wTtMDTjJeBJb74sGz+25kHDQxF8XTtBiiAGdAPkqUo3Fzn6VBgHfmmxsk3MzXN AvFzjcnjCACyEF7rSkE+UGaJ46IHw6VYlAw= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Marvin Haeuser Currently, SourceX is not considered in the BufferToVideo operation when the 8-bit pixel format is used. Correctly add the resulting offset to prevent image corruption. Cc: Jian J Wang Cc: Hao A Wu Signed-off-by: Marvin Haeuser --- MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.c b/M= deModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.c index 47c5326e9958..a084cc81d32e 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 PixelBlueGreenRedReserved8BitPerColo= r) { - 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.23.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#47970): https://edk2.groups.io/g/devel/message/47970 Mute This Topic: https://groups.io/mt/34275800/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-