From dcc1c0da6b279d0f1cb67244f1983ce028731c6f Mon Sep 17 00:00:00 2001
From: Eduard Gushchin <[EMAIL REDACTED]>
Date: Sat, 28 Dec 2024 21:58:51 +0300
Subject: [PATCH] Changed the style type in TTF_Font from int to Uint32
---
src/SDL_ttf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/SDL_ttf.c b/src/SDL_ttf.c
index 6be9dc28..c095733c 100644
--- a/src/SDL_ttf.c
+++ b/src/SDL_ttf.c
@@ -247,7 +247,7 @@ struct TTF_Font {
int lineskip;
// The font style
- int style;
+ Uint32 style;
int outline;
FT_Stroker stroker;
@@ -4988,7 +4988,7 @@ bool TTF_GetFontDPI(TTF_Font *font, int *hdpi, int *vdpi)
void TTF_SetFontStyle(TTF_Font *font, TTF_FontStyleFlags style)
{
- int prev_style;
+ Uint32 prev_style;
long face_style;
TTF_CHECK_FONT(font,);