SDL_ttf: Fixed bug #379 - In function in "TTF_GetTextSizeWrapped", warning: declaration of "w" shadows a parameter

From 92eb66e62f540e7a41b16cdbaba6f4b74a0e9f55 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Fri, 27 Sep 2024 11:49:15 +0200
Subject: [PATCH] Fixed bug #379 - In function in "TTF_GetTextSizeWrapped",
 warning: declaration of "w" shadows a parameter

---
 src/SDL_ttf.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/SDL_ttf.c b/src/SDL_ttf.c
index b64aba9e..54d80676 100644
--- a/src/SDL_ttf.c
+++ b/src/SDL_ttf.c
@@ -3467,10 +3467,10 @@ bool TTF_GetTextSizeWrapped(TTF_Font *font, const char *text, size_t length, int
         if (numLines > 1) {
             width = 0;
             for (i = 0; i < numLines; i++) {
-                int w, h;
+                int w_tmp, h_tmp;
 
-                if (TTF_GetTextSize(font, strLines[i].text, strLines[i].length, &w, &h)) {
-                    width = SDL_max(w, width);
+                if (TTF_GetTextSize(font, strLines[i].text, strLines[i].length, &w_tmp, &h_tmp)) {
+                    width = SDL_max(w_tmp, width);
                 }
             }
             /* In case there are all newlines */