From 36e5676d9ffee14234d20b033c1ac9a0412959ad Mon Sep 17 00:00:00 2001 From: Tobi Date: Mon, 22 Aug 2022 17:18:26 +0100 Subject: [PATCH] Ehh --- source/BitmapPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/BitmapPrinter.cpp b/source/BitmapPrinter.cpp index ecb908f..bdcc35b 100644 --- a/source/BitmapPrinter.cpp +++ b/source/BitmapPrinter.cpp @@ -352,7 +352,7 @@ void RenderD7::BitmapPrinter::DrawChar(int posX, int posY, float t_size, u32 col { for(int x = 0; x < font.GetGlyphWidth(character); x++) { - DrawPixel(posX + x + 1, posY + y + 1, 255, 255, 255, font.GetGlyphBitmap(character)[((y * width + x) * 1)]); + DrawPixel(posX + x + 1, posY + y + 1, 255, 255, 255, font.GetGlyphBitmap(character)[((y * font.GetGlyphWidth(character) + x) * 1)]); if(((font.GetGlyphBitmap(character)[font.GetGlyphHeight(character) + y] >> (font.GetGlyphWidth(character - 1) - x)) & 1) == 1) {