From 6bccbd6b1f01843be71299be022c7eea03b823df Mon Sep 17 00:00:00 2001 From: COMRADECHOnKy <129215115+Mashedpotato98@users.noreply.github.com> Date: Sat, 6 Jun 2026 16:10:51 +0600 Subject: [PATCH] SDL_GetRenderOutputSize -> SDL_GetCurrentRenderOutputSIze SDL_GetRenderOutput size is old --- docs/hello.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hello.c b/docs/hello.c index aff0e97f7a..e8ddde80e2 100644 --- a/docs/hello.c +++ b/docs/hello.c @@ -46,7 +46,7 @@ SDL_AppResult SDL_AppIterate(void *appstate) const float scale = 4.0f; /* Center the message and scale it up */ - SDL_GetRenderOutputSize(renderer, &w, &h); + SDL_GetCurrentRenderOutputSize(renderer, &w, &h); SDL_SetRenderScale(renderer, scale, scale); x = ((w / scale) - SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE * SDL_strlen(message)) / 2; y = ((h / scale) - SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE) / 2;