SDL: test: Moved some `Uint32` bitfields over to typedefs.

From 13b18e3c413dda4765c6619fdba88a3da634342c Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 23 May 2024 23:56:05 -0400
Subject: [PATCH] test: Moved some `Uint32` bitfields over to typedefs.

Reference Issue #9812.
---
 include/SDL3/SDL_test_common.h | 7 ++++---
 src/test/SDL_test_common.c     | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/include/SDL3/SDL_test_common.h b/include/SDL3/SDL_test_common.h
index fd5f71d45d53c..d881303e3378c 100644
--- a/include/SDL3/SDL_test_common.h
+++ b/include/SDL3/SDL_test_common.h
@@ -45,6 +45,7 @@
 #define DEFAULT_WINDOW_HEIGHT 480
 #endif
 
+typedef Uint32 SDLTest_VerboseFlags;
 #define VERBOSE_VIDEO   0x00000001
 #define VERBOSE_MODES   0x00000002
 #define VERBOSE_RENDER  0x00000004
@@ -56,8 +57,8 @@ typedef struct
 {
     /* SDL init flags */
     char **argv;
-    Uint32 flags;
-    Uint32 verbose;
+    SDL_InitFlags flags;
+    SDLTest_VerboseFlags verbose;
 
     /* Video info */
     const char *videodriver;
@@ -147,7 +148,7 @@ extern "C" {
  *
  * \returns a newly allocated common state object.
  */
-SDLTest_CommonState *SDLTest_CommonCreateState(char **argv, Uint32 flags);
+SDLTest_CommonState *SDLTest_CommonCreateState(char **argv, SDL_InitFlags flags);
 
 /**
  * Free the common state object.
diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c
index e272d07d5e5a2..a7706d27033e1 100644
--- a/src/test/SDL_test_common.c
+++ b/src/test/SDL_test_common.c
@@ -88,7 +88,7 @@ static void SDL_snprintfcat(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, SDL
     va_end(ap);
 }
 
-SDLTest_CommonState *SDLTest_CommonCreateState(char **argv, Uint32 flags)
+SDLTest_CommonState *SDLTest_CommonCreateState(char **argv, SDL_InitFlags flags)
 {
     int i;
     SDLTest_CommonState *state;