Import backup from 2004-05-21

This commit is contained in:
josh committed 2017-07-25 22:23:46 -04:00
1 parent 38f009f2ca
commit 6b6e19effd
42 files changed
+251 -1669

No files matched your search

File renamed without changes.
@@ -37,7 +37,7 @@ void video_init()
}
//Renders a character using stdfont[] as a bitmask
void video_renderChar(int x, int y, int character, int font, dword color)
void video_renderChar(int x, int y, int character, int font, dword color, int drawBack, dword backColor)
{
int charWidth = stdfont_getFontWidth(font);
if (!charWidth)
@@ -53,6 +53,8 @@ void video_renderChar(int x, int y, int character, int font, dword color)
{
if ((charBMP[charpos + row] << col) & 0x80)
video_pset(x + col, y + row, color);
else if (drawBack)
video_pset(x + col, y + row, backColor);
}
}
}
+1 -1
View File
@@ -18,7 +18,7 @@ void video_psetp16(int pixel, dword color);
void video_psetp24(int pixel, dword color);
void video_psetp32(int pixel, dword color);
void video_psetpnull(int pixel, dword color);
void video_renderChar(int x, int y, int character, int font, dword color);
void video_renderChar(int x, int y, int character, int font, dword color, int drawBack, dword backColor);
int video_getWidth();
int video_getHeight();
byte video_getBitsPerPixel();