mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-08-13 15:53:48 -04: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 color)
|
||||
{
|
||||
if (size == 0)
|
||||
size = 1;
|
||||
|
||||
uint16_t pos = 0;
|
||||
|
||||
uint16_t currentX = x;
|
||||
@ -1045,8 +1048,8 @@ void SFG_drawText(
|
||||
uint16_t drawX = currentX + k;
|
||||
uint16_t drawY = currentY + l;
|
||||
|
||||
if (drawX >= 0 && drawX < SFG_GAME_RESOLUTION_X &&
|
||||
drawY >= 0 && drawY < SFG_GAME_RESOLUTION_Y)
|
||||
if (drawX < SFG_GAME_RESOLUTION_X &&
|
||||
drawY < SFG_GAME_RESOLUTION_Y)
|
||||
SFG_setGamePixel(drawX,drawY,color);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user