SDL: Fixed drawing debug text

From dfcabc3db8a01c9c95fb4a08ebb5dee9f83992e2 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 29 Aug 2024 18:21:48 -0700
Subject: [PATCH] Fixed drawing debug text

---
 src/test/SDL_test_font.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/SDL_test_font.c b/src/test/SDL_test_font.c
index f977ab4438819..8d5e0a36052dc 100644
--- a/src/test/SDL_test_font.c
+++ b/src/test/SDL_test_font.c
@@ -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);