Pārlūkot izejas kodu

migration: replace SDL_DisplayMode w and h by screen_w and screen_h

Sylvain 2 gadi atpakaļ
vecāks
revīzija
413376cdb3
1 mainītis faili ar 20 papildinājumiem un 0 dzēšanām
  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
+)