SDL: Removed SDL_SWSURFACE, added unsigned suffix for surface flags

From 7cddde32acf7e22430603f87a93359d979724711 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 16 May 2024 11:40:38 -0700
Subject: [PATCH] Removed SDL_SWSURFACE, added unsigned suffix for surface
 flags

---
 docs/README-migration.md   |  3 +++
 include/SDL3/SDL_surface.h | 11 +++++------
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/docs/README-migration.md b/docs/README-migration.md
index 985e4f72650e7..d534201affbc7 100644
--- a/docs/README-migration.md
+++ b/docs/README-migration.md
@@ -1519,6 +1519,9 @@ The following functions have been renamed:
 * SDL_UpperBlit() => SDL_BlitSurface()
 * SDL_UpperBlitScaled() => SDL_BlitSurfaceScaled()
 
+The following symbols have been removed:
+* SDL_SWSURFACE
+
 The following functions have been removed:
 * SDL_GetYUVConversionMode()
 * SDL_GetYUVConversionModeForResolution()
diff --git a/include/SDL3/SDL_surface.h b/include/SDL3/SDL_surface.h
index 327f4285ab0fd..c049d968ec6e6 100644
--- a/include/SDL3/SDL_surface.h
+++ b/include/SDL3/SDL_surface.h
@@ -51,12 +51,11 @@ extern "C" {
  */
 typedef Uint32 SDL_SurfaceFlags;
 
-#define SDL_SWSURFACE               0           /**< Just here for compatibility */
-#define SDL_PREALLOC                0x00000001  /**< Surface uses preallocated memory */
-#define SDL_RLEACCEL                0x00000002  /**< Surface is RLE encoded */
-#define SDL_DONTFREE                0x00000004  /**< Surface is referenced internally */
-#define SDL_SIMD_ALIGNED            0x00000008  /**< Surface uses aligned memory */
-#define SDL_SURFACE_USES_PROPERTIES 0x00000010  /**< Surface uses properties */
+#define SDL_PREALLOC                0x00000001u /**< Surface uses preallocated memory */
+#define SDL_RLEACCEL                0x00000002u /**< Surface is RLE encoded */
+#define SDL_DONTFREE                0x00000004u /**< Surface is referenced internally */
+#define SDL_SIMD_ALIGNED            0x00000008u /**< Surface uses aligned memory */
+#define SDL_SURFACE_USES_PROPERTIES 0x00000010u /**< Surface uses properties */
 
 /**
  * Evaluates to true if the surface needs to be locked before access.