diff --git a/sdk/xtdk/xtfw.h b/sdk/xtdk/xtfw.h index 6470f82..6fda25c 100644 --- a/sdk/xtdk/xtfw.h +++ b/sdk/xtdk/xtfw.h @@ -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 */ diff --git a/xtldr/modules/xtos_o/xtos.c b/xtldr/modules/xtos_o/xtos.c index ceaab59..f6ee9d1 100644 --- a/xtldr/modules/xtos_o/xtos.c +++ b/xtldr/modules/xtos_o/xtos.c @@ -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