SDL_rtf: Fix variable 'TTF_style' set but not used [-Werror,-Wunused-but-set-variable] (c4492)

From c4492f95f472d25cdc7783267692664c1f618cbc Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Mon, 15 Jan 2024 18:55:31 +0100
Subject: [PATCH] Fix variable 'TTF_style' set but not used
 [-Werror,-Wunused-but-set-variable]

(cherry picked from commit 1ff249756f78e69309c0822d70d85a03b28ced41)
---
 showrtf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/showrtf.c b/showrtf.c
index c91a181..9a639f9 100644
--- a/showrtf.c
+++ b/showrtf.c
@@ -96,7 +96,7 @@ static void * SDLCALL CreateFont(const char *name, RTF_FontFamily family, int ch
             TTF_style |= TTF_STYLE_ITALIC;
         if ( style & RTF_FontUnderline )
             TTF_style |= TTF_STYLE_UNDERLINE;
-        TTF_SetFontStyle(font, style);
+        TTF_SetFontStyle(font, TTF_style);
     }
 
     /* FIXME: What do we do with the character set? */