SDL: Merge commit '9b0c660a033cce0d14ee4efc647ec1d01b60b6e1' into main

From 9b0c660a033cce0d14ee4efc647ec1d01b60b6e1 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Thu, 12 Jan 2023 11:06:36 +0100
Subject: [PATCH] SDL_migration: various name changes, and function removed

---
 build-scripts/SDL_migration.cocci | 46 +++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/build-scripts/SDL_migration.cocci b/build-scripts/SDL_migration.cocci
index 136149683796..53271930ee0f 100644
--- a/build-scripts/SDL_migration.cocci
+++ b/build-scripts/SDL_migration.cocci
@@ -31,6 +31,52 @@
 // So this file is a set of many semantic patches, mostly independant.
 
 
+
+// SDL_Has3DNow() has been removed; there is no replacement.
+@@
+@@
++ /* FIXME MIGRATION: SDL_Has3DNow() has been removed; there is no replacement. */ 0
+- SDL_Has3DNow()
+
+// SDL_HINT_VIDEO_X11_XINERAMA (Xinerama no longer supported by the X11 backend)
+@@
+@@
++ /* FIXME MIGRATION: no longer support by the X11 backend */ NULL
+- SDL_HINT_VIDEO_X11_XINERAMA
+
+// SDL_HINT_VIDEO_X11_XVIDMODE (Xvidmode no longer supported by the X11 backend)
+@@
+@@
++ /* FIXME MIGRATION: no longer support by the X11 backend */ NULL
+- SDL_HINT_VIDEO_X11_XVIDMODE
+
+// SDL_HINT_VIDEO_X11_FORCE_EGL (use SDL_HINT_VIDEO_FORCE_EGL instead)
+@@
+@@
+- SDL_HINT_VIDEO_X11_FORCE_EGL
++ SDL_HINT_VIDEO_FORCE_EGL
+
+@@
+@@
+- SDL_HINT_AUDIODRIVER
++ SDL_HINT_AUDIO_DRIVER
+
+@@
+@@
+- SDL_HINT_VIDEODRIVER
++ SDL_HINT_VIDEO_DRIVER
+
+@@
+@@
+- M_PI
++ SDL_PI_D
+
+// SDL_GetRevisionNumber() has been removed from the API, it always returned 0 in SDL 2.0.
+@@
+@@
++ /* FIXME MIGRATION: SDL_GetRevisionNumber() removed */ 0
+- SDL_GetRevisionNumber()
+
 // SDL_RWread
 @@
 expression e1, e2, e3, e4;