forked from xt-sys/exectos
Allow to use custom framebuffer fonts
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user