SDL: Merge commit 'ecc48b882df9b819fb4079184bbf2b0c11a0523f' into main

From ecc48b882df9b819fb4079184bbf2b0c11a0523f Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Tue, 10 Jan 2023 16:11:22 +0100
Subject: [PATCH] migration: change 2nd arg of SDL_CreateRenderer to NULL if it
 was -1

---
 build-scripts/SDL_migration.cocci | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/build-scripts/SDL_migration.cocci b/build-scripts/SDL_migration.cocci
index b7d73c150faa..71466de5cea8 100644
--- a/build-scripts/SDL_migration.cocci
+++ b/build-scripts/SDL_migration.cocci
@@ -456,6 +456,15 @@ expression e1, e2, e3, e4, e5, e6, e7, e8, e9;
 
 )
 
+@@
+// SDL_CreateRenderer:
+// 2nd argument changed from int (default=-1) to const char* (default=NULL)
+expression e1, e2;
+@@
+SDL_CreateRenderer(e1,
+- -1
++ NULL
+, e2)
 
 
 // Renaming of SDL_oldnames.h
@@ -1737,8 +1746,4 @@ expression e1, e2, e3, e4, e5, e6, e7, e8, e9;
 @@
 - SDL_GetRectDisplayIndex
 + SDL_GetDisplayIndexForRect
-  (...)
-
-
-
-
+  (...)
\ No newline at end of file