Make sure frame buffer is initialized before drawing
This commit is contained in:
parent
d2014a5e82
commit
2103b2dafd
@ -28,6 +28,13 @@ HlClearScreen(IN ULONG Color)
|
||||
ULONG BackgroundColor;
|
||||
PULONG FrameBuf;
|
||||
|
||||
/* Make sure frame buffer is already initialized */
|
||||
if(HlpFrameBufferData.Initialized == FALSE)
|
||||
{
|
||||
/* Unable to operate on non-initialized frame buffer */
|
||||
return;
|
||||
}
|
||||
|
||||
/* Get pointer to frame buffer */
|
||||
FrameBuf = HlpFrameBufferData.Address;
|
||||
|
||||
@ -198,6 +205,13 @@ HlPutCharacter(IN ULONG PositionX,
|
||||
PSSFN_FONT_HEADER FbFont;
|
||||
ULONG FontColor;
|
||||
|
||||
/* Make sure frame buffer is already initialized */
|
||||
if(HlpFrameBufferData.Initialized == FALSE)
|
||||
{
|
||||
/* Unable to operate on non-initialized frame buffer */
|
||||
return;
|
||||
}
|
||||
|
||||
/* Get pointers to font data */
|
||||
FbFont = (PSSFN_FONT_HEADER)HlpFrameBufferData.Font;
|
||||
CharacterMapping = (PUCHAR)FbFont + FbFont->CharactersOffset;
|
||||
|
Loading…
Reference in New Issue
Block a user