mirror of https://github.com/libsdl-org/SDL.git
Fixed drawing debug text
This commit is contained in:
parent
f1b4c2bbbb
commit
dfcabc3db8
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue