From b39b7025fd97c2dd85cedb7fe2db2d7f1de88914 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 13 Feb 2023 13:11:43 -0800
Subject: [PATCH] SDL_GL_GetDrawableSize, SDL_Metal_GetDrawableSize, and
SDL_Vulkan_GetDrawableSize can be replaced with SDL_GetWindowSizeInPixels
---
build-scripts/SDL_migration.cocci | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/build-scripts/SDL_migration.cocci b/build-scripts/SDL_migration.cocci
index 0860a198c33c..76c300d24b43 100644
--- a/build-scripts/SDL_migration.cocci
+++ b/build-scripts/SDL_migration.cocci
@@ -2487,3 +2487,18 @@ expression e2;
- SDL_RenderDrawRects
+ SDL_RenderRects
(...)
+@@
+@@
+- SDL_GL_GetDrawableSize
++ SDL_GetWindowSizeInPixels
+ (...)
+@@
+@@
+- SDL_Metal_GetDrawableSize
++ SDL_GetWindowSizeInPixels
+ (...)
+@@
+@@
+- SDL_Vulkan_GetDrawableSize
++ SDL_GetWindowSizeInPixels
+ (...)