Просмотр исходного кода

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
Sam Lantinga 5 лет назад
Родитель
Сommit
59a644fb01
2 измененных файлов с 0 добавлено и 10 удалено
  1. 0 5
      test/controllermap.c
  2. 0 5
      test/testgamecontroller.c

+ 0 - 5
test/controllermap.c

@@ -24,13 +24,8 @@
 /* Define this for verbose output while mapping controllers */
 /* Define this for verbose output while mapping controllers */
 #define DEBUG_CONTROLLERMAP
 #define DEBUG_CONTROLLERMAP
 
 
-#ifdef __IPHONEOS__
-#define SCREEN_WIDTH    320
-#define SCREEN_HEIGHT   480
-#else
 #define SCREEN_WIDTH    512
 #define SCREEN_WIDTH    512
 #define SCREEN_HEIGHT   320
 #define SCREEN_HEIGHT   320
-#endif
 
 
 #define MARKER_BUTTON 1
 #define MARKER_BUTTON 1
 #define MARKER_AXIS 2
 #define MARKER_AXIS 2

+ 0 - 5
test/testgamecontroller.c

@@ -24,13 +24,8 @@
 
 
 #ifndef SDL_JOYSTICK_DISABLED
 #ifndef SDL_JOYSTICK_DISABLED
 
 
-#ifdef __IPHONEOS__
-#define SCREEN_WIDTH    480
-#define SCREEN_HEIGHT    320
-#else
 #define SCREEN_WIDTH    512
 #define SCREEN_WIDTH    512
 #define SCREEN_HEIGHT   320
 #define SCREEN_HEIGHT   320
-#endif
 
 
 /* This is indexed by SDL_GameControllerButton. */
 /* This is indexed by SDL_GameControllerButton. */
 static const struct { int x; int y; } button_positions[] = {
 static const struct { int x; int y; } button_positions[] = {