Fix nibble

This commit is contained in:
Miloslav Ciz 2025-06-18 23:09:01 +02:00
parent e838d76e72
commit 72ed947273
4 changed files with 11 additions and 8 deletions

View file

@ -267,11 +267,11 @@ void LCR_rendererDrawText(const char *text, int x, int y, uint16_t color,
for (int a = 0; a < 2; ++a)
{
if (c & 0x01)
for (int i = 0; i < size; ++i)
for (int i = 0; i <= size; ++i)
_LCR_rendererDrawFontPixel(x + a * size + i,y + b * size,color);
if (c & 0x02)
for (int i = 0; i < size; ++i)
for (int i = 0; i <= size; ++i)
_LCR_rendererDrawFontPixel(x + b * size,y + a * size + i,color);
c >>= 2;
@ -281,7 +281,7 @@ void LCR_rendererDrawText(const char *text, int x, int y, uint16_t color,
for (int a = 0; a < 2; ++a)
{
if (c & 0x01)
for (int i = 0; i < size; ++i)
for (int i = 0; i <= size; ++i)
_LCR_rendererDrawFontPixel(x + a * size + i,y + b * size + i,color);
c >>= 1;