6207
|
1 |
diff -r 50560ca58f80 Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj
|
|
2 |
--- a/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj Mon Oct 24 23:18:53 2011 -0400
|
|
3 |
+++ b/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj Tue Oct 25 22:13:19 2011 +0200
|
5702
|
4 |
@@ -1596,9 +1596,12 @@
|
5697
|
5 |
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
|
6 |
GCC_C_LANGUAGE_STANDARD = c99;
|
|
7 |
GCC_DEBUGGING_SYMBOLS = full;
|
|
8 |
+ GCC_OPTIMIZATION_LEVEL = 0;
|
|
9 |
+ GCC_THUMB_SUPPORT = NO;
|
6207
|
10 |
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
5697
|
11 |
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
|
12 |
GCC_WARN_UNUSED_VARIABLE = NO;
|
|
13 |
- IPHONEOS_DEPLOYMENT_TARGET = 3.1.3;
|
6207
|
14 |
+ IPHONEOS_DEPLOYMENT_TARGET = 3.0;
|
5697
|
15 |
ONLY_ACTIVE_ARCH = NO;
|
|
16 |
PREBINDING = NO;
|
|
17 |
SDKROOT = iphoneos;
|
5702
|
18 |
@@ -1613,9 +1616,12 @@
|
5697
|
19 |
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
|
|
20 |
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
|
21 |
GCC_C_LANGUAGE_STANDARD = c99;
|
|
22 |
+ GCC_FAST_MATH = YES;
|
|
23 |
+ GCC_THUMB_SUPPORT = NO;
|
6207
|
24 |
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
5697
|
25 |
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
|
26 |
GCC_WARN_UNUSED_VARIABLE = NO;
|
|
27 |
- IPHONEOS_DEPLOYMENT_TARGET = 3.1.3;
|
6207
|
28 |
+ IPHONEOS_DEPLOYMENT_TARGET = 3.0;
|
5697
|
29 |
PREBINDING = NO;
|
|
30 |
SDKROOT = iphoneos;
|
|
31 |
TARGETED_DEVICE_FAMILY = "1,2";
|
6207
|
32 |
diff -r 50560ca58f80 include/SDL_config_iphoneos.h
|
|
33 |
--- a/include/SDL_config_iphoneos.h Mon Oct 24 23:18:53 2011 -0400
|
|
34 |
+++ b/include/SDL_config_iphoneos.h Tue Oct 25 22:13:19 2011 +0200
|
5697
|
35 |
@@ -106,7 +106,7 @@
|
|
36 |
/* enable iPhone version of Core Audio driver */
|
5702
|
37 |
#define SDL_AUDIO_DRIVER_COREAUDIO 1
|
5697
|
38 |
/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
|
|
39 |
-#define SDL_AUDIO_DRIVER_DUMMY 1
|
|
40 |
+#define SDL_AUDIO_DRIVER_DUMMY 0
|
|
41 |
|
|
42 |
/* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
|
|
43 |
#define SDL_HAPTIC_DISABLED 1
|
6207
|
44 |
@@ -132,16 +132,16 @@
|
5697
|
45 |
/* enable OpenGL ES */
|
|
46 |
#define SDL_VIDEO_OPENGL_ES 1
|
|
47 |
#define SDL_VIDEO_RENDER_OGL_ES 1
|
|
48 |
-#define SDL_VIDEO_RENDER_OGL_ES2 1
|
|
49 |
+#define SDL_VIDEO_RENDER_OGL_ES2 0
|
|
50 |
|
|
51 |
/* Enable system power support */
|
|
52 |
-#define SDL_POWER_UIKIT 1
|
|
53 |
+#define SDL_POWER_UIKIT 0
|
|
54 |
|
|
55 |
/* enable iPhone keyboard support */
|
|
56 |
#define SDL_IPHONE_KEYBOARD 1
|
|
57 |
|
6207
|
58 |
/* enable joystick subsystem */
|
|
59 |
-#define SDL_JOYSTICK_DISABLED 0
|
5697
|
60 |
+#define SDL_JOYSTICK_DISABLED 1
|
6207
|
61 |
|
5697
|
62 |
/* Set max recognized G-force from accelerometer
|
|
63 |
See src/joystick/uikit/SDLUIAccelerationDelegate.m for notes on why this is needed
|
6207
|
64 |
diff -r 50560ca58f80 src/video/uikit/SDL_uikitopenglview.m
|
|
65 |
--- a/src/video/uikit/SDL_uikitopenglview.m Mon Oct 24 23:18:53 2011 -0400
|
|
66 |
+++ b/src/video/uikit/SDL_uikitopenglview.m Tue Oct 25 22:13:19 2011 +0200
|
|
67 |
@@ -114,8 +114,8 @@
|
5697
|
68 |
|
|
69 |
// !!! FIXME: use the screen this is on!
|
|
70 |
/* Use the main screen scale (for retina display support) */
|
|
71 |
- if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)])
|
|
72 |
- self.contentScaleFactor = [UIScreen mainScreen].scale;
|
|
73 |
+ if ([self respondsToSelector:@selector(contentScaleFactor)])
|
|
74 |
+ self.contentScaleFactor = [[UIScreen mainScreen] scale];
|
|
75 |
|
|
76 |
self.autoresizingMask = 0; // don't allow autoresize, since we need to do some magic in -(void)updateFrame.
|
|
77 |
}
|
6207
|
78 |
@@ -144,8 +144,8 @@
|
|
79 |
|
5697
|
80 |
// !!! FIXME: use the screen this is on!
|
|
81 |
/* Use the main screen scale (for retina display support) */
|
|
82 |
- if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)])
|
|
83 |
- self.contentScaleFactor = [UIScreen mainScreen].scale;
|
|
84 |
+ if ([self respondsToSelector:@selector(contentScaleFactor)])
|
|
85 |
+ self.contentScaleFactor = [[UIScreen mainScreen] scale];
|
|
86 |
}
|
|
87 |
|
6207
|
88 |
- (void)setCurrentContext
|
|
89 |
diff -r 50560ca58f80 src/video/uikit/SDL_uikitviewcontroller.m
|
|
90 |
--- a/src/video/uikit/SDL_uikitviewcontroller.m Mon Oct 24 23:18:53 2011 -0400
|
|
91 |
+++ b/src/video/uikit/SDL_uikitviewcontroller.m Tue Oct 25 22:13:19 2011 +0200
|
|
92 |
@@ -145,7 +145,7 @@
|
5697
|
93 |
frame.origin.x = 0;
|
|
94 |
frame.origin.y = 0;
|
6207
|
95 |
|
5697
|
96 |
- [uiwindow setFrame:frame];
|
|
97 |
+ [uiwindow setFrame:[[UIScreen mainScreen] bounds]];
|
|
98 |
[data->view updateFrame];
|
|
99 |
SDL_SendWindowEvent(self->window, SDL_WINDOWEVENT_RESIZED, w, h);
|
|
100 |
}
|