瀏覽代碼

SDL_GL_GetDrawableSize, SDL_Metal_GetDrawableSize, and SDL_Vulkan_GetDrawableSize can be replaced with SDL_GetWindowSizeInPixels

Sam Lantinga 3 年之前
父節點
當前提交
b39b7025fd
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      build-scripts/SDL_migration.cocci

+ 15 - 0
build-scripts/SDL_migration.cocci

@@ -2487,3 +2487,18 @@ expression e2;
 - SDL_RenderDrawRects
 - SDL_RenderDrawRects
 + SDL_RenderRects
 + SDL_RenderRects
   (...)
   (...)
+@@
+@@
+- SDL_GL_GetDrawableSize
++ SDL_GetWindowSizeInPixels
+  (...)
+@@
+@@
+- SDL_Metal_GetDrawableSize
++ SDL_GetWindowSizeInPixels
+  (...)
+@@
+@@
+- SDL_Vulkan_GetDrawableSize
++ SDL_GetWindowSizeInPixels
+  (...)