Explorar o código

migration: replace SDL_DisplayMode w and h by screen_w and screen_h

Sylvain %!s(int64=2) %!d(string=hai) anos
pai
achega
413376cdb3
Modificáronse 1 ficheiros con 20 adicións e 0 borrados
  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_INPUT_GRABBED
 + SDL_WINDOW_MOUSE_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
+)