SDL: testcontroller: create window with high pixel density

From bc85c55350802fb0ce49b9f6f47ca47cade3e6ce Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 22 Feb 2025 09:02:01 -0800
Subject: [PATCH] testcontroller: create window with high pixel density

This improves the picture quality when running on an iPhone.
---
 test/testcontroller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/testcontroller.c b/test/testcontroller.c
index 8f74c3ba3c3b7..b717b30eb9d4f 100644
--- a/test/testcontroller.c
+++ b/test/testcontroller.c
@@ -2101,7 +2101,7 @@ SDL_AppResult SDLCALL SDL_AppInit(void **appstate, int argc, char *argv[])
     }
     screen_width = (int)SDL_ceilf(SCREEN_WIDTH * content_scale);
     screen_height = (int)SDL_ceilf(SCREEN_HEIGHT * content_scale);
-    window = SDL_CreateWindow("SDL Controller Test", screen_width, screen_height, 0);
+    window = SDL_CreateWindow("SDL Controller Test", screen_width, screen_height, SDL_WINDOW_HIGH_PIXEL_DENSITY);
     if (!window) {
         SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't create window: %s", SDL_GetError());
         return SDL_APP_FAILURE;