mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-14 15:28:14 +00:00
Corrected issue #281
This commit is contained in:
@@ -443,7 +443,7 @@ void DrawTextEx(SpriteFont spriteFont, const char *text, Vector2 position, float
|
|||||||
index = GetCharIndex(spriteFont, (int)letter + 64);
|
index = GetCharIndex(spriteFont, (int)letter + 64);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
else index = GetCharIndex(spriteFont, (int)text[i]);
|
else index = GetCharIndex(spriteFont, (unsigned char)text[i]);
|
||||||
|
|
||||||
DrawTexturePro(spriteFont.texture, spriteFont.chars[index].rec,
|
DrawTexturePro(spriteFont.texture, spriteFont.chars[index].rec,
|
||||||
(Rectangle){ position.x + textOffsetX + spriteFont.chars[index].offsetX*scaleFactor,
|
(Rectangle){ position.x + textOffsetX + spriteFont.chars[index].offsetX*scaleFactor,
|
||||||
|
Reference in New Issue
Block a user