Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

corrected right-aligned text rendering (follow-up bug of issue #59)

  • Loading branch information...
commit d8f406999fa7f42ab65d3e1452500ffa712ee949 1 parent bdd9b1c
FrMo authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/font.c
View
4 src/font.c
@@ -243,11 +243,9 @@ void drawFontWordRA(float x, float y, char *word) {
for (i = strlen(word) - 1; i >= 0; i--) {
+ x -= fonts[(int)word[i]].ow;
drawFontLetter(x, y, word[i]);
- if (i > 0)
- x -= fonts[(int)word[i-1]].ow;
-
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.