فهرست منبع

migration: replace SDL_DisplayMode w and h by screen_w and screen_h

Sylvain 3 سال پیش
والد
کامیت
413376cdb3
1فایلهای تغییر یافته به همراه20 افزوده شده و 0 حذف شده
  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
+)