project_files/HedgewarsMobile/SDL.patch
changeset 4934 727da72f754a
parent 4933 86bd82d58a0b
child 4945 541d35d1f2e8
equal deleted inserted replaced
4933:86bd82d58a0b 4934:727da72f754a
     1 diff -r 1fbe1c202501 Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj
     1 diff -r 1fbe1c202501 Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj
     2 --- a/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj	Mon Feb 07 10:40:21 2011 -0800
     2 --- a/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj	Mon Feb 07 10:40:21 2011 -0800
     3 +++ b/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj	Mon Feb 07 23:10:55 2011 +0100
     3 +++ b/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj	Mon Feb 07 23:21:28 2011 +0100
     4 @@ -1603,11 +1603,15 @@
     4 @@ -1603,11 +1603,15 @@
     5  			isa = XCBuildConfiguration;
     5  			isa = XCBuildConfiguration;
     6  			buildSettings = {
     6  			buildSettings = {
     7  				ALWAYS_SEARCH_USER_PATHS = NO;
     7  				ALWAYS_SEARCH_USER_PATHS = NO;
     8 +				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
     8 +				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
    37  				PREBINDING = NO;
    37  				PREBINDING = NO;
    38  				SDKROOT = iphoneos;
    38  				SDKROOT = iphoneos;
    39  				TARGETED_DEVICE_FAMILY = "1,2";
    39  				TARGETED_DEVICE_FAMILY = "1,2";
    40 diff -r 1fbe1c202501 include/SDL_config_iphoneos.h
    40 diff -r 1fbe1c202501 include/SDL_config_iphoneos.h
    41 --- a/include/SDL_config_iphoneos.h	Mon Feb 07 10:40:21 2011 -0800
    41 --- a/include/SDL_config_iphoneos.h	Mon Feb 07 10:40:21 2011 -0800
    42 +++ b/include/SDL_config_iphoneos.h	Mon Feb 07 23:10:55 2011 +0100
    42 +++ b/include/SDL_config_iphoneos.h	Mon Feb 07 23:21:28 2011 +0100
    43 @@ -119,7 +119,7 @@
    43 @@ -119,7 +119,7 @@
    44  /* enable iPhone version of Core Audio driver */
    44  /* enable iPhone version of Core Audio driver */
    45  #define SDL_AUDIO_DRIVER_COREAUDIOIPHONE 1
    45  #define SDL_AUDIO_DRIVER_COREAUDIOIPHONE 1
    46  /* Enable the dummy audio driver (src/audio/dummy/\*.c) */
    46  /* Enable the dummy audio driver (src/audio/dummy/\*.c) */
    47 -#define SDL_AUDIO_DRIVER_DUMMY	1
    47 -#define SDL_AUDIO_DRIVER_DUMMY	1
    77  
    77  
    78 +/* Tag to grab the uikit view from external code for further modification */
    78 +/* Tag to grab the uikit view from external code for further modification */
    79 +#define SDL_VIEW_TAG 456987
    79 +#define SDL_VIEW_TAG 456987
    80 +
    80 +
    81  #endif /* _SDL_config_iphoneos_h */
    81  #endif /* _SDL_config_iphoneos_h */
       
    82 diff -r 1fbe1c202501 src/video/uikit/SDL_uikitopengles.m
       
    83 --- a/src/video/uikit/SDL_uikitopengles.m	Mon Feb 07 10:40:21 2011 -0800
       
    84 +++ b/src/video/uikit/SDL_uikitopengles.m	Mon Feb 07 23:21:28 2011 +0100
       
    85 @@ -117,6 +117,7 @@
       
    86                                      majorVersion: _this->gl_config.major_version];
       
    87      
       
    88      data->view = view;
       
    89 +    view.tag = SDL_VIEW_TAG;
       
    90      
       
    91      /* add the view to our window */
       
    92      [uiwindow addSubview: view ];