project_files/HedgewarsMobile/SDL.patch
changeset 4945 541d35d1f2e8
parent 4934 727da72f754a
child 5004 2efa6a414518
--- a/project_files/HedgewarsMobile/SDL.patch	Wed Feb 16 13:07:00 2011 +0300
+++ b/project_files/HedgewarsMobile/SDL.patch	Fri Feb 18 00:21:36 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:21:28 2011 +0100
++++ b/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj	Fri Feb 18 00:09:03 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:21:28 2011 +0100
++++ b/include/SDL_config_iphoneos.h	Fri Feb 18 00:09:03 2011 +0100
 @@ -119,7 +119,7 @@
  /* enable iPhone version of Core Audio driver */
  #define SDL_AUDIO_DRIVER_COREAUDIOIPHONE 1
@@ -79,9 +79,24 @@
 +#define SDL_VIEW_TAG 456987
 +
  #endif /* _SDL_config_iphoneos_h */
+diff -r 1fbe1c202501 src/video/SDL_video.c
+--- a/src/video/SDL_video.c	Mon Feb 07 10:40:21 2011 -0800
++++ b/src/video/SDL_video.c	Fri Feb 18 00:09:03 2011 +0100
+@@ -1657,9 +1657,11 @@
+         SDL_MinimizeWindow(window);
+     }
+ 
++    /*
+     if (display->gamma && _this->SetDisplayGammaRamp) {
+         _this->SetDisplayGammaRamp(_this, display, display->saved_gamma);
+     }
++    */
+     if ((window->flags & (SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN))
+         && _this->SetWindowGrab) {
+         _this->SetWindowGrab(_this, window);
 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
++++ b/src/video/uikit/SDL_uikitopengles.m	Fri Feb 18 00:09:03 2011 +0100
 @@ -117,6 +117,7 @@
                                      majorVersion: _this->gl_config.major_version];