diff --git a/UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c b/UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c index ab669569a185..372ca0776558 100644 --- a/UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c +++ b/UefiPayloadPkg/Library/FdtParserLib/FdtParserLib.c @@ -378,6 +378,9 @@ ParseFrameBuffer ( GmaStr++; DEBUG ((DEBUG_INFO, " display (%s)", GmaStr)); } + + // In most case, PixelsPerScanLine is identical to HorizontalResolution + GraphicsInfo->GraphicsMode.PixelsPerScanLine = GraphicsInfo->GraphicsMode.HorizontalResolution; } return GmaStr;