project_files/HedgewarsMobile/SDL.patch
changeset 4934 727da72f754a
parent 4933 86bd82d58a0b
child 4945 541d35d1f2e8
--- a/project_files/HedgewarsMobile/SDL.patch	Mon Feb 07 23:12:56 2011 +0100
+++ b/project_files/HedgewarsMobile/SDL.patch	Mon Feb 07 23:22:14 2011 +0100
@@ -1,6 +1,6 @@
 diff -r 1fbe1c202501 Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj
 --- a/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj	Mon Feb 07 10:40:21 2011 -0800
-+++ b/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj	Mon Feb 07 23:10:55 2011 +0100
++++ b/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj	Mon Feb 07 23:21:28 2011 +0100
 @@ -1603,11 +1603,15 @@
  			isa = XCBuildConfiguration;
  			buildSettings = {
@@ -39,7 +39,7 @@
  				TARGETED_DEVICE_FAMILY = "1,2";
 diff -r 1fbe1c202501 include/SDL_config_iphoneos.h
 --- a/include/SDL_config_iphoneos.h	Mon Feb 07 10:40:21 2011 -0800
-+++ b/include/SDL_config_iphoneos.h	Mon Feb 07 23:10:55 2011 +0100
++++ b/include/SDL_config_iphoneos.h	Mon Feb 07 23:21:28 2011 +0100
 @@ -119,7 +119,7 @@
  /* enable iPhone version of Core Audio driver */
  #define SDL_AUDIO_DRIVER_COREAUDIOIPHONE 1
@@ -79,3 +79,14 @@
 +#define SDL_VIEW_TAG 456987
 +
  #endif /* _SDL_config_iphoneos_h */
+diff -r 1fbe1c202501 src/video/uikit/SDL_uikitopengles.m
+--- a/src/video/uikit/SDL_uikitopengles.m	Mon Feb 07 10:40:21 2011 -0800
++++ b/src/video/uikit/SDL_uikitopengles.m	Mon Feb 07 23:21:28 2011 +0100
+@@ -117,6 +117,7 @@
+                                     majorVersion: _this->gl_config.major_version];
+     
+     data->view = view;
++    view.tag = SDL_VIEW_TAG;
+     
+     /* add the view to our window */
+     [uiwindow addSubview: view ];