SDL_rtf: fix build after latest SDL3 changes.

From c35e79481566e68da48a7b50302d52cf62bf79a8 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 13 Jun 2024 05:47:14 +0300
Subject: [PATCH] fix build after latest SDL3 changes.

---
 src/SDL_rtfreadr.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/SDL_rtfreadr.c b/src/SDL_rtfreadr.c
index 3fbfd64..a29d2e6 100644
--- a/src/SDL_rtfreadr.c
+++ b/src/SDL_rtfreadr.c
@@ -375,9 +375,7 @@ static void RenderLine(RTF_Context *ctx, RTF_Line *line, const SDL_Rect *rect, i
 
         dstRect.x = (float)(rect->x + surface->x);
         dstRect.y = (float)(rect->y + yOffset + surface->y);
-        SDL_QueryTexture(texture, NULL, NULL, &w, &h);
-        dstRect.w = (float)w;
-        dstRect.h = (float)h;
+        SDL_GetTextureSize(texture, &dstRect.w, &dstRect.h);
         SDL_RenderTexture(renderer, texture, NULL, &dstRect);
     }
 }