aboutsummaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2017-05-09 09:35:58 +0200
committerGitHub <noreply@github.com>2017-05-09 09:35:58 +0200
commit0ca874c710aace697c5a383f41fc81abf34e2e06 (patch)
tree804ea004f637c5514c15a116a9599a93564557ab /src/text.c
parentc785d84d30a232d9b44b6969a24103ab8da959b7 (diff)
parent4c27412eff10f8ef633d97017dcb9e2faff4c4e1 (diff)
downloadraylib-0ca874c710aace697c5a383f41fc81abf34e2e06.tar.gz
raylib-0ca874c710aace697c5a383f41fc81abf34e2e06.zip
Merge pull request #282 from raysan5/develop
Integrate Develop branch
Diffstat (limited to 'src/text.c')
-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,