SDL: migration: replace SDL_DisplayMode w and h by screen_w and screen_h

From 413376cdb3488f54cf5d8f42c5a9a58c8e91c05a Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Sun, 29 Jan 2023 14:54:24 +0100
Subject: [PATCH] migration: replace SDL_DisplayMode w and h by screen_w and
 screen_h

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

diff --git a/build-scripts/SDL_migration.cocci b/build-scripts/SDL_migration.cocci
index 7b6f41e00b27..10546ba9150c 100644
--- a/build-scripts/SDL_migration.cocci
+++ b/build-scripts/SDL_migration.cocci
@@ -2334,3 +2334,23 @@ expression e;
 @@
 - SDL_WINDOW_INPUT_GRABBED
 + SDL_WINDOW_MOUSE_GRABBED
+@@
+SDL_DisplayMode *e;
+@@
+(
+- e->w
++ e->screen_w
+|
+- e->h
++ e->screen_h
+)
+@@
+SDL_DisplayMode e;
+@@
+(
+- e.w
++ e.screen_w
+|
+- e.h
++ e.screen_h
+)