SDL_ttf: Replace SDL_CreateRGBSurface by SDL_CreateRGBSurfaceWithFormat (955b2)

From 955b298e4d75c0b1bfba360d50af54c17d792449 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Fri, 2 Dec 2022 10:58:37 +0100
Subject: [PATCH] Replace SDL_CreateRGBSurface by
 SDL_CreateRGBSurfaceWithFormat

---
 glfont.c | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)

diff --git a/glfont.c b/glfont.c
index 1f6c6290..01513efe 100644
--- a/glfont.c
+++ b/glfont.c
@@ -112,22 +112,7 @@ static GLuint SDL_GL_LoadTexture(SDL_Surface *surface, GLfloat *texcoord)
     texcoord[2] = (GLfloat)surface->w / w;  /* Max X */
     texcoord[3] = (GLfloat)surface->h / h;  /* Max Y */
 
-    image = SDL_CreateRGBSurface(
-            SDL_SWSURFACE,
-            w, h,
-            32,
-#if SDL_BYTEORDER == SDL_LIL_ENDIAN /* OpenGL RGBA masks */
-            0x000000FF,
-            0x0000FF00,
-            0x00FF0000,
-            0xFF000000
-#else
-            0xFF000000,
-            0x00FF0000,
-            0x0000FF00,
-            0x000000FF
-#endif
-            );
+    image = SDL_CreateRGBSurfaceWithFormat(0, w, h, 0, SDL_PIXELFORMAT_RGBA32);
     if (image == NULL) {
         return 0;
     }