Browse Source

migration: replace SDL_DisplayMode w and h by screen_w and screen_h

Sylvain 2 years ago
parent
commit
413376cdb3
1 changed files with 20 additions and 0 deletions
  1. 20 0
      build-scripts/SDL_migration.cocci

+ 20 - 0
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
+)