From d804b2c39c4527f747b6e0680c4881a3a8238a70 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 23 Apr 2025 17:39:20 +0300
Subject: [PATCH] minor sync with latest SDL3 and SDL2.
---
include/SDL2/SDL_surface.h | 4 ++--
src/sdl3_include_wrapper.h | 15 +++++++++++++++
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/include/SDL2/SDL_surface.h b/include/SDL2/SDL_surface.h
index 6169e66e..dc00a9c8 100644
--- a/include/SDL2/SDL_surface.h
+++ b/include/SDL2/SDL_surface.h
@@ -808,8 +808,8 @@ extern DECLSPEC int SDLCALL SDL_FillRects
*
* This assumes that the source and destination rectangles are the same size.
* If either `srcrect` or `dstrect` are NULL, the entire surface (`src` or
- * `dst`) is copied. The final blit rectangles are saved in `srcrect` and
- * `dstrect` after all clipping is performed.
+ * `dst`) is copied. The final blit rectangle is saved in `dstrect` after all
+ * clipping is performed.
*
* The blit function should not be called on a locked surface.
*
diff --git a/src/sdl3_include_wrapper.h b/src/sdl3_include_wrapper.h
index 96ff64b1..75cd2f69 100644
--- a/src/sdl3_include_wrapper.h
+++ b/src/sdl3_include_wrapper.h
@@ -1280,6 +1280,9 @@
#define SDL_GetWindowProgressValue IGNORE_THIS_VERSION_OF_SDL_GetWindowProgressValue
#define SDL_SetRenderTextureAddressMode IGNORE_THIS_VERSION_OF_SDL_SetRenderTextureAddressMode
#define SDL_GetRenderTextureAddressMode IGNORE_THIS_VERSION_OF_SDL_GetRenderTextureAddressMode
+#define SDL_GetGPUDeviceProperties IGNORE_THIS_VERSION_OF_SDL_GetGPUDeviceProperties
+#define SDL_CreateGPURenderer IGNORE_THIS_VERSION_OF_SDL_CreateGPURenderer
+#define SDL_PutAudioStreamPlanarData IGNORE_THIS_VERSION_OF_SDL_PutAudioStreamPlanarData
#define SDL_FUNCTION_POINTER_IS_VOID_POINTER 1
@@ -6294,6 +6297,18 @@
#undef SDL_GetRenderTextureAddressMode
#endif
+#ifdef SDL_GetGPUDeviceProperties
+#undef SDL_GetGPUDeviceProperties
+#endif
+
+#ifdef SDL_CreateGPURenderer
+#undef SDL_CreateGPURenderer
+#endif
+
+#ifdef SDL_PutAudioStreamPlanarData
+#undef SDL_PutAudioStreamPlanarData
+#endif
+
#undef SDL_ThreadID /* see at top. */
/* dump the macro CreateThread versions, too. */