mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-25 23:59:04 +00:00
Fixed drawing debug text
This commit is contained in:
@@ -3356,7 +3356,7 @@ SDL_bool SDLTest_DrawString(SDL_Renderer *renderer, float x, float y, const char
|
||||
float cury = y;
|
||||
size_t len = SDL_strlen(s);
|
||||
|
||||
while (len > 0 && !result) {
|
||||
while (len > 0 && result) {
|
||||
int advance = 0;
|
||||
Uint32 ch = UTF8_getch(s, len, &advance);
|
||||
result &= SDLTest_DrawCharacter(renderer, curx, cury, ch);
|
||||
|
||||
Reference in New Issue
Block a user