diff options
| author | Ray <raysan5@gmail.com> | 2017-05-09 09:33:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-09 09:33:32 +0200 |
| commit | 4c27412eff10f8ef633d97017dcb9e2faff4c4e1 (patch) | |
| tree | 804ea004f637c5514c15a116a9599a93564557ab /src | |
| parent | f05d6dfc3c778f55564680405ad8365b87d4eb39 (diff) | |
| download | raylib-4c27412eff10f8ef633d97017dcb9e2faff4c4e1.tar.gz raylib-4c27412eff10f8ef633d97017dcb9e2faff4c4e1.zip | |
Corrected issue #281
Diffstat (limited to 'src')
| -rw-r--r-- | src/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |
