Show the display content scale in SDLTest_CommonDrawWindowInfo()

This commit is contained in:
Sam Lantinga committed 2025-01-02 10:58:15 -08:00
1 parent 4797970bfa
commit ecf8dd054d
1 file changed
+4
+4
View File
@@ -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);