Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
corrected right-aligned text rendering (follow-up bug of issue #59)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrMo committed May 29, 2012
1 parent bdd9b1c commit d8f4069
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/font.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}
}

Expand Down

0 comments on commit d8f4069

Please sign in to comment.