aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2017-05-09 09:33:32 +0200
committerGitHub <noreply@github.com>2017-05-09 09:33:32 +0200
commit4c27412eff10f8ef633d97017dcb9e2faff4c4e1 (patch)
tree804ea004f637c5514c15a116a9599a93564557ab /src
parentf05d6dfc3c778f55564680405ad8365b87d4eb39 (diff)
downloadraylib-4c27412eff10f8ef633d97017dcb9e2faff4c4e1.tar.gz
raylib-4c27412eff10f8ef633d97017dcb9e2faff4c4e1.zip
Corrected issue #281
Diffstat (limited to 'src')
-rw-r--r--src/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.c b/src/text.c
index cba9a7d6..027701de 100644
--- a/src/text.c
+++ b/src/text.c
@@ -443,7 +443,7 @@ void DrawTextEx(SpriteFont spriteFont, const char *text, Vector2 position, float
index = GetCharIndex(spriteFont, (int)letter + 64);
i++;
}
- else index = GetCharIndex(spriteFont, (int)text[i]);
+ else index = GetCharIndex(spriteFont, (unsigned char)text[i]);
DrawTexturePro(spriteFont.texture, spriteFont.chars[index].rec,
(Rectangle){ position.x + textOffsetX + spriteFont.chars[index].offsetX*scaleFactor,