From b755eafd87a6bdec5138d39a17e9ba6826c97375 Mon Sep 17 00:00:00 2001 From: SimonMaracine Date: Sun, 29 Jun 2025 12:00:52 +0300 Subject: [PATCH] Return the errors from GetWrappedLines in LayoutText instead of ignoring them --- src/SDL_ttf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SDL_ttf.c b/src/SDL_ttf.c index 9dc4b6f8..40e73ac7 100644 --- a/src/SDL_ttf.c +++ b/src/SDL_ttf.c @@ -4512,7 +4512,7 @@ static bool LayoutText(TTF_Text *text) Uint32 script = TTF_GetTextScript(text); if (!GetWrappedLines(font, text->text, length, direction, script, text->internal->x, wrap_width, trim_whitespace, &strLines, &numLines, &width, &height, false)) { - return true; + return false; } height += text->internal->y;