Buffer[x] = (Line & 1) ? Color : BackColor;
Line >>= 1;
}
-
+
/* Next line */
Buffer += ScreenWidth;
}
ULONG ScreenSize, p;
ULONG BackColor;
PUSHORT VideoBuffer;
-
+
/* Get frame buffer and reset cursor position */
VideoBuffer = LlbHwGetFrameBuffer();
ScreenCursor = 0;
-
+
/* Backcolor on this machine */
if (OsLoader)
{
#endif
BackColor = (BackColor << 16) | BackColor;
}
-
+
/* Screen size on this machine */
ScreenSize = LlbHwGetScreenWidth() * LlbHwGetScreenHeight();
-
+
/* Clear the screen with the given color */
for (p = 0; p < ScreenSize * 2; p += 4)
{
LlbVideoPutChar(IN UCHAR c)
{
ULONG cx, cy, CharsPerLine, BackColor, ScreenWidth;
-
+
/* Backcolor on this machine */
#ifdef BLUE_SCREEN
BackColor = LlbHwVideoCreateColor(14, 0, 82);
#else
BackColor = LlbHwVideoCreateColor(0, 0, 0);
#endif
-
+
/* Amount of characters in a line */
ScreenWidth = LlbHwGetScreenWidth();
CharsPerLine = ScreenWidth / 8;
{
/* Move a line down */
ScreenCursor += CharsPerLine - (ScreenCursor % CharsPerLine);
-
+
/* FIXME: Scrolling */
}
else