UefiPayloadPkg: Set PixelsPerScanLine property in GraphicInfo HOB

PixelsPerScanLine is required in some UEFI capable OS distribution.
To align with simple-framebuffer definition in kernel Documentation:
devicetree/bindings/display/simple-framebuffer.txt, no property node
will be introduced for PixelsPerScanLine.

Set value of PixelsPerScanLine to HorizontalResolution, as they are
identical in most cases.

Signed-off-by: Ajan Zhong <ajan.zhong@newfw.com>
This commit is contained in:
Ajan Zhong 2024-12-24 09:53:14 +08:00 committed by mergify[bot]
parent c52dddf1eb
commit e8c7b14da0

View File

@ -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;