Commit 59a644fb01e70ebb399082ec95fec7c5eda3b20b

Sam Lantinga 2020-11-06T14:44:26

iOS should use the same size window for the controller tests as other platforms Otherwise the position of the button and axis elements won't be correct

diff --git a/test/controllermap.c b/test/controllermap.c
index 48587e5..258e336 100644
--- a/test/controllermap.c
+++ b/test/controllermap.c
@@ -24,13 +24,8 @@
 /* Define this for verbose output while mapping controllers */
 #define DEBUG_CONTROLLERMAP
 
-#ifdef __IPHONEOS__
-#define SCREEN_WIDTH    320
-#define SCREEN_HEIGHT   480
-#else
 #define SCREEN_WIDTH    512
 #define SCREEN_HEIGHT   320
-#endif
 
 #define MARKER_BUTTON 1
 #define MARKER_AXIS 2
diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c
index 7b3a880..3910675 100644
--- a/test/testgamecontroller.c
+++ b/test/testgamecontroller.c
@@ -24,13 +24,8 @@
 
 #ifndef SDL_JOYSTICK_DISABLED
 
-#ifdef __IPHONEOS__
-#define SCREEN_WIDTH    480
-#define SCREEN_HEIGHT    320
-#else
 #define SCREEN_WIDTH    512
 #define SCREEN_HEIGHT   320
-#endif
 
 /* This is indexed by SDL_GameControllerButton. */
 static const struct { int x; int y; } button_positions[] = {