From 40ef7580eef17436ad3263e0d8e5ba19c73abf8e Mon Sep 17 00:00:00 2001
From: SimonMaracine <[EMAIL REDACTED]>
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 42072e77..0cca9cf8 100644
--- a/src/SDL_ttf.c
+++ b/src/SDL_ttf.c
@@ -4509,7 +4509,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;