SDL_rtf: Fix C4244: '=': conversion from 'int' to 'float', possible loss of data

From aca340ed982d257f8742c2f352f80eadaa14ddba Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Mon, 15 Jan 2024 18:51:08 +0100
Subject: [PATCH] Fix C4244: '=': conversion from 'int' to 'float', possible
 loss of data

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

diff --git a/src/SDL_rtfreadr.c b/src/SDL_rtfreadr.c
index 8c0bd38..ced4aec 100644
--- a/src/SDL_rtfreadr.c
+++ b/src/SDL_rtfreadr.c
@@ -373,8 +373,8 @@ static void RenderLine(RTF_Context *ctx, RTF_Line *line, const SDL_Rect *rect, i
     {
         SDL_Texture *texture = (SDL_Texture *)surface->surface;
 
-        dstRect.x = rect->x + surface->x;
-        dstRect.y = rect->y + yOffset + surface->y;
+        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;