Skip to content

Commit

Permalink
TTF_MeasureText: current width needed from previous calculation (Bug …
Browse files Browse the repository at this point in the history
…4515)
  • Loading branch information
1bsyl committed Apr 12, 2019
1 parent c715964 commit cb70fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDL_ttf.c
Expand Up @@ -2628,9 +2628,9 @@ static int TTF_Size_Internal(TTF_Font *font,
if (measure_width) {
int cw = maxx - minx;
if (cw >= measure_width) {
current_width = cw;
break;
}
current_width = cw;
char_count += 1;
}
}
Expand Down

0 comments on commit cb70fd7

Please sign in to comment.