Browse Source

migration: replace SDL_DisplayMode w and h by screen_w and screen_h

Sylvain 3 năm trước cách đây
mục cha
commit
413376cdb3
1 tập tin đã thay đổi với 20 bổ sung0 xóa
  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
+)