__
This commit is contained in:
parent
91bbcdb7a7
commit
e24b704809
@ -352,13 +352,18 @@ void RenderD7::BitmapPrinter::DrawChar(int posX, int posY, float t_size, u32 col
|
|||||||
{
|
{
|
||||||
for(int x = 0; x < font.GetGlyphWidth(character); x++)
|
for(int x = 0; x < font.GetGlyphWidth(character); x++)
|
||||||
{
|
{
|
||||||
|
DrawPixel(posX + x + 1, posY + y + 1, 255, 255, 255, font.GetGlyphBitmap(character)[y*x]);
|
||||||
if(((font.GetGlyphBitmap(character)[font.GetGlyphHeight(character) + y] >> (font.GetGlyphWidth(character - 1) - x)) & 1) == 1)
|
if(((font.GetGlyphBitmap(character)[font.GetGlyphHeight(character) + y] >> (font.GetGlyphWidth(character - 1) - x)) & 1) == 1)
|
||||||
{
|
{
|
||||||
DrawPixel(posX + x + 1, posY + y + 1, UNPACK_BGRA(color));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//for(int y = 0; y < font.GetGlyphHeight(character) * font.GetGlyphWidth(character); y++)
|
||||||
|
//{
|
||||||
|
// DrawPixel(posX + x + 1, posY + y + 1, UNPACK_BGRA(color));
|
||||||
|
//}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user