From 0bc72428fd30056cfb14a296c4c476c78e35f511 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 13 Feb 2025 06:58:58 -0800
Subject: [PATCH] Call SDL3_GetWindowSizeInPixels() directly
---
src/sdl2_compat.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 42566c3..d910b42 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -10113,19 +10113,19 @@ SDL_ConvertAudio(SDL_AudioCVT *cvt)
SDL_DECLSPEC void SDLCALL
SDL_GL_GetDrawableSize(SDL_Window *window, int *w, int *h)
{
- SDL_GetWindowSizeInPixels(window, w, h);
+ SDL3_GetWindowSizeInPixels(window, w, h);
}
SDL_DECLSPEC void SDLCALL
SDL_Vulkan_GetDrawableSize(SDL_Window *window, int *w, int *h)
{
- SDL_GetWindowSizeInPixels(window, w, h);
+ SDL3_GetWindowSizeInPixels(window, w, h);
}
SDL_DECLSPEC void SDLCALL
SDL_Metal_GetDrawableSize(SDL_Window *window, int *w, int *h)
{
- SDL_GetWindowSizeInPixels(window, w, h);
+ SDL3_GetWindowSizeInPixels(window, w, h);
}
SDL_DECLSPEC char * SDLCALL