mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
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:
parent
c52dddf1eb
commit
e8c7b14da0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user