Provide pixel information to the kernel
Builds / ExectOS (amd64) (push) Successful in 41s Details
Builds / ExectOS (i686) (push) Successful in 40s Details

This commit is contained in:
Rafal Kupiec 2024-05-12 22:28:06 +02:00
parent 615a1457bf
commit c576f7f8f2
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 19 additions and 0 deletions

View File

@ -102,6 +102,17 @@ typedef struct _LOADER_GRAPHICS_INFORMATION_BLOCK
UINT BitsPerPixel;
UINT Pitch;
PVOID Font;
struct
{
USHORT BlueShift;
USHORT BlueSize;
USHORT GreenShift;
USHORT GreenSize;
USHORT RedShift;
USHORT RedSize;
USHORT ReservedShift;
USHORT ReservedSize;
} Pixels;
} LOADER_GRAPHICS_INFORMATION_BLOCK, *PLOADER_GRAPHICS_INFORMATION_BLOCK;
/* Boot Loader information block */

View File

@ -50,6 +50,14 @@ XtGetDisplayInformation(OUT PLOADER_GRAPHICS_INFORMATION_BLOCK InformationBlock,
InformationBlock->BitsPerPixel = FrameBufferModeInfo->BitsPerPixel;
InformationBlock->PixelsPerScanLine = FrameBufferModeInfo->PixelsPerScanLine;
InformationBlock->Pitch = FrameBufferModeInfo->Pitch;
InformationBlock->Pixels.BlueShift = FrameBufferModeInfo->PixelInformation.BlueShift;
InformationBlock->Pixels.BlueSize = FrameBufferModeInfo->PixelInformation.BlueSize;
InformationBlock->Pixels.GreenShift = FrameBufferModeInfo->PixelInformation.GreenShift;
InformationBlock->Pixels.GreenSize = FrameBufferModeInfo->PixelInformation.GreenSize;
InformationBlock->Pixels.RedShift = FrameBufferModeInfo->PixelInformation.RedShift;
InformationBlock->Pixels.RedSize = FrameBufferModeInfo->PixelInformation.RedSize;
InformationBlock->Pixels.ReservedShift = FrameBufferModeInfo->PixelInformation.ReservedShift;
InformationBlock->Pixels.ReservedSize = FrameBufferModeInfo->PixelInformation.ReservedSize;
}
XTCDECL