SDL: Show the display content scale in SDLTest_CommonDrawWindowInfo()

From ecf8dd054db34aeddf1c2679249e3e866e347965 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 2 Jan 2025 10:57:53 -0800
Subject: [PATCH] Show the display content scale in
 SDLTest_CommonDrawWindowInfo()

---
 src/test/SDL_test_common.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c
index b85da9a56dddf..32441162c813e 100644
--- a/src/test/SDL_test_common.c
+++ b/src/test/SDL_test_common.c
@@ -2818,6 +2818,10 @@ void SDLTest_CommonDrawWindowInfo(SDL_Renderer *renderer, SDL_Window *window, fl
     SDLTest_DrawString(renderer, 0.0f, textY, text);
     textY += lineHeight;
 
+    (void)SDL_snprintf(text, sizeof(text), "SDL_GetDisplayContentScale: %g", SDL_GetDisplayContentScale(windowDisplayID));
+    SDLTest_DrawString(renderer, 0.0f, textY, text);
+    textY += lineHeight;
+
     /* Mouse */
 
     SDL_SetRenderDrawColor(renderer, 255, 255, 255, 255);