Allow to use custom framebuffer fonts
一些检查失败了
Builds / ExectOS (i686) (push) Failing after 28s
Builds / ExectOS (amd64) (push) Failing after 30s

这个提交包含在:
2024-03-10 10:02:30 +01:00
父节点 a4d9e6dd8e
当前提交 cb4292dccf
共有 2 个文件被更改,包括 14 次插入0 次删除

查看文件

@@ -102,6 +102,7 @@ typedef struct _LOADER_GRAPHICS_INFORMATION_BLOCK
UINT PixelsPerScanLine;
UINT BitsPerPixel;
UINT Pitch;
PVOID Font;
} LOADER_GRAPHICS_INFORMATION_BLOCK, *PLOADER_GRAPHICS_INFORMATION_BLOCK;
/* Boot Loader information block */

查看文件

@@ -7,6 +7,7 @@
*/
#include <xtos.h>
#include <xtfont.h>
/**
@@ -108,6 +109,18 @@ HlInitializeFrameBuffer(VOID)
return STATUS_DEVICE_NOT_READY;
}
/* Check if custom font provided by bootloader */
if(KeInitializationBlock->LoaderInformation.FrameBuffer.Font)
{
/* Use custom font */
HlpFrameBufferData.Font = KeInitializationBlock->LoaderInformation.FrameBuffer.Font;
}
else
{
/* Use default font */
HlpFrameBufferData.Font = (PVOID)&XtFbDefaultFont;
}
/* Save framebuffer information and mark display as initialized */
HlpFrameBufferData.Address = KeInitializationBlock->LoaderInformation.FrameBuffer.Address;
HlpFrameBufferData.Width = KeInitializationBlock->LoaderInformation.FrameBuffer.Width;