From 18308072e62787f7c2f5feb6d9fea5f7033870d2 Mon Sep 17 00:00:00 2001
From: SDL Wiki Bot <[EMAIL REDACTED]>
Date: Thu, 3 Oct 2024 16:13:26 +0000
Subject: [PATCH] Sync SDL3_ttf wiki -> header
---
include/SDL3_ttf/SDL_ttf.h | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/include/SDL3_ttf/SDL_ttf.h b/include/SDL3_ttf/SDL_ttf.h
index 768c2bcf..61d93e75 100644
--- a/include/SDL3_ttf/SDL_ttf.h
+++ b/include/SDL3_ttf/SDL_ttf.h
@@ -1704,11 +1704,15 @@ typedef struct TTF_SubString
/**
* Get the portion of a text string that surrounds a text offset.
*
- * If the offset is less than 0, this will return a zero width substring at the beginning of the text. If the offset is greater than or equal to the length of the text string, this will return a zero width substring at the end of the text.
+ * If the offset is less than 0, this will return a zero width substring at
+ * the beginning of the text. If the offset is greater than or equal to the
+ * length of the text string, this will return a zero width substring at the
+ * end of the text.
*
* \param text the TTF_Text to query.
* \param offset a byte offset into the text string.
- * \param substring a pointer filled in with the substring containing the offset.
+ * \param substring a pointer filled in with the substring containing the
+ * offset.
* \returns true on success or false on failure; call SDL_GetError() for more
* information.
*/
@@ -1720,9 +1724,12 @@ extern SDL_DECLSPEC bool SDLCALL TTF_GetTextSubString(TTF_Text *text, int offset
* This will return the closest substring of text to the given point.
*
* \param text the TTF_Text to query.
- * \param x the x coordinate relative to the left side of the text, may be outside the bounds of the text area.
- * \param y the y coordinate relative to the top side of the text, may be outside the bounds of the text area.
- * \param substring a pointer filled in with the closest substring of text to the given point, may be NULL.
+ * \param x the x coordinate relative to the left side of the text, may be
+ * outside the bounds of the text area.
+ * \param y the y coordinate relative to the top side of the text, may be
+ * outside the bounds of the text area.
+ * \param substring a pointer filled in with the closest substring of text to
+ * the given point, may be NULL.
* \returns true on success or false on failure; call SDL_GetError() for more
* information.
*/