Fixed drawing debug text

This commit is contained in:
Sam Lantinga 2024-08-29 18:21:48 -07:00
parent f1b4c2bbbb
commit dfcabc3db8
1 changed files with 1 additions and 1 deletions

View File

@ -3356,7 +3356,7 @@ SDL_bool SDLTest_DrawString(SDL_Renderer *renderer, float x, float y, const char
float cury = y; float cury = y;
size_t len = SDL_strlen(s); size_t len = SDL_strlen(s);
while (len > 0 && !result) { while (len > 0 && result) {
int advance = 0; int advance = 0;
Uint32 ch = UTF8_getch(s, len, &advance); Uint32 ch = UTF8_getch(s, len, &advance);
result &= SDLTest_DrawCharacter(renderer, curx, cury, ch); result &= SDLTest_DrawCharacter(renderer, curx, cury, ch);