mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-21 06:48:49 -05:00
Continue text
This commit is contained in:
parent
bbc6883717
commit
74de5e0b0b
7
main.c
7
main.c
@ -1023,6 +1023,9 @@ void SFG_drawText(
|
|||||||
uint8_t size,
|
uint8_t size,
|
||||||
uint8_t color)
|
uint8_t color)
|
||||||
{
|
{
|
||||||
|
if (size == 0)
|
||||||
|
size = 1;
|
||||||
|
|
||||||
uint16_t pos = 0;
|
uint16_t pos = 0;
|
||||||
|
|
||||||
uint16_t currentX = x;
|
uint16_t currentX = x;
|
||||||
@ -1045,8 +1048,8 @@ void SFG_drawText(
|
|||||||
uint16_t drawX = currentX + k;
|
uint16_t drawX = currentX + k;
|
||||||
uint16_t drawY = currentY + l;
|
uint16_t drawY = currentY + l;
|
||||||
|
|
||||||
if (drawX >= 0 && drawX < SFG_GAME_RESOLUTION_X &&
|
if (drawX < SFG_GAME_RESOLUTION_X &&
|
||||||
drawY >= 0 && drawY < SFG_GAME_RESOLUTION_Y)
|
drawY < SFG_GAME_RESOLUTION_Y)
|
||||||
SFG_setGamePixel(drawX,drawY,color);
|
SFG_setGamePixel(drawX,drawY,color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user