forked from Rust-SDL2/rust-sdl2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Rust-SDL2#1027 from aclysma/update-bunded-to-2.0.12
Update bundled SDL2 to 2.0.12
- Loading branch information
Showing
92 changed files
with
621 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2019 Sam Lantinga <[email protected]> | ||
Copyright (C) 1997-2020 Sam Lantinga <[email protected]> | ||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
|
@@ -47,6 +47,7 @@ | |
#include "SDL_loadso.h" | ||
#include "SDL_log.h" | ||
#include "SDL_messagebox.h" | ||
#include "SDL_metal.h" | ||
#include "SDL_mutex.h" | ||
#include "SDL_power.h" | ||
#include "SDL_render.h" | ||
|
2 changes: 1 addition & 1 deletion
2
sdl2-sys/SDL2-2.0.10/include/SDL_assert.h → sdl2-sys/SDL2-2.0.12/include/SDL_assert.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2019 Sam Lantinga <[email protected]> | ||
Copyright (C) 1997-2020 Sam Lantinga <[email protected]> | ||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
|
2 changes: 1 addition & 1 deletion
2
sdl2-sys/SDL2-2.0.10/include/SDL_atomic.h → sdl2-sys/SDL2-2.0.12/include/SDL_atomic.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2019 Sam Lantinga <[email protected]> | ||
Copyright (C) 1997-2020 Sam Lantinga <[email protected]> | ||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
|
2 changes: 1 addition & 1 deletion
2
sdl2-sys/SDL2-2.0.10/include/SDL_audio.h → sdl2-sys/SDL2-2.0.12/include/SDL_audio.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2019 Sam Lantinga <[email protected]> | ||
Copyright (C) 1997-2020 Sam Lantinga <[email protected]> | ||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
|
2 changes: 1 addition & 1 deletion
2
sdl2-sys/SDL2-2.0.10/include/SDL_bits.h → sdl2-sys/SDL2-2.0.12/include/SDL_bits.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2019 Sam Lantinga <[email protected]> | ||
Copyright (C) 1997-2020 Sam Lantinga <[email protected]> | ||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2019 Sam Lantinga <[email protected]> | ||
Copyright (C) 1997-2020 Sam Lantinga <[email protected]> | ||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
|
@@ -50,6 +50,9 @@ typedef enum | |
SDL_BLENDMODE_MOD = 0x00000004, /**< color modulate | ||
dstRGB = srcRGB * dstRGB | ||
dstA = dstA */ | ||
SDL_BLENDMODE_MUL = 0x00000008, /**< color multiply | ||
dstRGB = (srcRGB * dstRGB) + (dstRGB * (1-srcA)) | ||
dstA = (srcA * dstA) + (dstA * (1-srcA)) */ | ||
SDL_BLENDMODE_INVALID = 0x7FFFFFFF | ||
|
||
/* Additional custom blend modes can be returned by SDL_ComposeCustomBlendMode() */ | ||
|
2 changes: 1 addition & 1 deletion
2
sdl2-sys/SDL2-2.0.10/include/SDL_clipboard.h → sdl2-sys/SDL2-2.0.12/include/SDL_clipboard.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2019 Sam Lantinga <[email protected]> | ||
Copyright (C) 1997-2020 Sam Lantinga <[email protected]> | ||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
|
2 changes: 1 addition & 1 deletion
2
sdl2-sys/SDL2-2.0.10/include/SDL_config.h → sdl2-sys/SDL2-2.0.12/include/SDL_config.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2019 Sam Lantinga <[email protected]> | ||
Copyright (C) 1997-2020 Sam Lantinga <[email protected]> | ||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2019 Sam Lantinga <[email protected]> | ||
Copyright (C) 1997-2020 Sam Lantinga <[email protected]> | ||
|
||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
|
@@ -96,7 +96,10 @@ | |
#cmakedefine HAVE_WCSLEN 1 | ||
#cmakedefine HAVE_WCSLCPY 1 | ||
#cmakedefine HAVE_WCSLCAT 1 | ||
#cmakedefine HAVE_WCSDUP 1 | ||
#cmakedefine HAVE_WCSSTR 1 | ||
#cmakedefine HAVE_WCSCMP 1 | ||
#cmakedefine HAVE_WCSNCMP 1 | ||
#cmakedefine HAVE_STRLEN 1 | ||
#cmakedefine HAVE_STRLCPY 1 | ||
#cmakedefine HAVE_STRLCAT 1 | ||
|
@@ -108,6 +111,8 @@ | |
#cmakedefine HAVE_STRCHR 1 | ||
#cmakedefine HAVE_STRRCHR 1 | ||
#cmakedefine HAVE_STRSTR 1 | ||
#cmakedefine HAVE_STRTOK_R 1 | ||
#cmakedefine HAVE_STRTOK_S 1 | ||
#cmakedefine HAVE_ITOA 1 | ||
#cmakedefine HAVE__LTOA 1 | ||
#cmakedefine HAVE__UITOA 1 | ||
|
@@ -127,6 +132,7 @@ | |
#cmakedefine HAVE_STRCASECMP 1 | ||
#cmakedefine HAVE__STRNICMP 1 | ||
#cmakedefine HAVE_STRNCASECMP 1 | ||
#cmakedefine HAVE_SSCANF 1 | ||
#cmakedefine HAVE_VSSCANF 1 | ||
#cmakedefine HAVE_VSNPRINTF 1 | ||
#cmakedefine HAVE_M_PI 1 | ||
|
@@ -211,7 +217,6 @@ | |
#cmakedefine HAVE_XINPUT_H @HAVE_XINPUT_H@ | ||
#cmakedefine HAVE_DXGI_H @HAVE_DXGI_H@ | ||
|
||
#cmakedefine HAVE_ENDPOINTVOLUME_H @HAVE_ENDPOINTVOLUME_H@ | ||
#cmakedefine HAVE_MMDEVICEAPI_H @HAVE_MMDEVICEAPI_H@ | ||
#cmakedefine HAVE_AUDIOCLIENT_H @HAVE_AUDIOCLIENT_H@ | ||
|
||
|
@@ -294,9 +299,11 @@ | |
#cmakedefine SDL_HAPTIC_DINPUT @SDL_HAPTIC_DINPUT@ | ||
#cmakedefine SDL_HAPTIC_XINPUT @SDL_HAPTIC_XINPUT@ | ||
#cmakedefine SDL_HAPTIC_ANDROID @SDL_HAPTIC_ANDROID@ | ||
#cmakedefine SDL_LIBUSB_DYNAMIC @SDL_LIBUSB_DYNAMIC@ | ||
|
||
/* Enable various sensor drivers */ | ||
#cmakedefine SDL_SENSOR_ANDROID @SDL_SENSOR_ANDROID@ | ||
#cmakedefine SDL_SENSOR_COREMOTION @SDL_SENSOR_COREMOTION@ | ||
#cmakedefine SDL_SENSOR_DUMMY @SDL_SENSOR_DUMMY@ | ||
|
||
/* Enable various shared object loading systems */ | ||
|
@@ -322,9 +329,11 @@ | |
#cmakedefine SDL_VIDEO_DRIVER_ANDROID @SDL_VIDEO_DRIVER_ANDROID@ | ||
#cmakedefine SDL_VIDEO_DRIVER_HAIKU @SDL_VIDEO_DRIVER_HAIKU@ | ||
#cmakedefine SDL_VIDEO_DRIVER_COCOA @SDL_VIDEO_DRIVER_COCOA@ | ||
#cmakedefine SDL_VIDEO_DRIVER_UIKIT @SDL_VIDEO_DRIVER_UIKIT@ | ||
#cmakedefine SDL_VIDEO_DRIVER_DIRECTFB @SDL_VIDEO_DRIVER_DIRECTFB@ | ||
#cmakedefine SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC @SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC@ | ||
#cmakedefine SDL_VIDEO_DRIVER_DUMMY @SDL_VIDEO_DRIVER_DUMMY@ | ||
#cmakedefine SDL_VIDEO_DRIVER_OFFSCREEN @SDL_VIDEO_DRIVER_OFFSCREEN@ | ||
#cmakedefine SDL_VIDEO_DRIVER_WINDOWS @SDL_VIDEO_DRIVER_WINDOWS@ | ||
#cmakedefine SDL_VIDEO_DRIVER_WAYLAND @SDL_VIDEO_DRIVER_WAYLAND@ | ||
#cmakedefine SDL_VIDEO_DRIVER_RPI @SDL_VIDEO_DRIVER_RPI@ | ||
|
@@ -387,11 +396,15 @@ | |
/* Enable Vulkan support */ | ||
#cmakedefine SDL_VIDEO_VULKAN @SDL_VIDEO_VULKAN@ | ||
|
||
/* Enable Metal support */ | ||
#cmakedefine SDL_VIDEO_METAL @SDL_VIDEO_METAL@ | ||
|
||
/* Enable system power support */ | ||
#cmakedefine SDL_POWER_ANDROID @SDL_POWER_ANDROID@ | ||
#cmakedefine SDL_POWER_LINUX @SDL_POWER_LINUX@ | ||
#cmakedefine SDL_POWER_WINDOWS @SDL_POWER_WINDOWS@ | ||
#cmakedefine SDL_POWER_MACOSX @SDL_POWER_MACOSX@ | ||
#cmakedefine SDL_POWER_UIKIT @SDL_POWER_UIKIT@ | ||
#cmakedefine SDL_POWER_HAIKU @SDL_POWER_HAIKU@ | ||
#cmakedefine SDL_POWER_EMSCRIPTEN @SDL_POWER_EMSCRIPTEN@ | ||
#cmakedefine SDL_POWER_HARDWIRED @SDL_POWER_HARDWIRED@ | ||
|
@@ -408,11 +421,16 @@ | |
/* Enable assembly routines */ | ||
#cmakedefine SDL_ASSEMBLY_ROUTINES @SDL_ASSEMBLY_ROUTINES@ | ||
#cmakedefine SDL_ALTIVEC_BLITTERS @SDL_ALTIVEC_BLITTERS@ | ||
#cmakedefine SDL_ARM_SIMD_BLITTERS @SDL_ARM_SIMD_BLITTERS@ | ||
#cmakedefine SDL_ARM_NEON_BLITTERS @SDL_ARM_NEON_BLITTERS@ | ||
|
||
/* Enable dynamic libsamplerate support */ | ||
#cmakedefine SDL_LIBSAMPLERATE_DYNAMIC @SDL_LIBSAMPLERATE_DYNAMIC@ | ||
|
||
/* Platform specific definitions */ | ||
#cmakedefine SDL_IPHONE_KEYBOARD @SDL_IPHONE_KEYBOARD@ | ||
#cmakedefine SDL_IPHONE_LAUNCHSCREEN @SDL_IPHONE_LAUNCHSCREEN@ | ||
|
||
#if !defined(__WIN32__) | ||
# if !defined(_STDINT_H_) && !defined(_STDINT_H) && !defined(HAVE_STDINT_H) && !defined(_HAVE_STDINT_H) | ||
typedef unsigned int size_t; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2019 Sam Lantinga <[email protected]> | ||
Copyright (C) 1997-2020 Sam Lantinga <[email protected]> | ||
|
||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
|
@@ -33,7 +33,7 @@ | |
|
||
/* Make sure that this isn't included by Visual C++ */ | ||
#ifdef _MSC_VER | ||
#error You should run hg revert SDL_config.h | ||
#error You should run hg revert SDL_config.h | ||
#endif | ||
|
||
/* C language features */ | ||
|
@@ -99,7 +99,10 @@ | |
#undef HAVE_WCSLEN | ||
#undef HAVE_WCSLCPY | ||
#undef HAVE_WCSLCAT | ||
#undef HAVE_WCSDUP | ||
#undef HAVE_WCSSTR | ||
#undef HAVE_WCSCMP | ||
#undef HAVE_WCSNCMP | ||
#undef HAVE_STRLEN | ||
#undef HAVE_STRLCPY | ||
#undef HAVE_STRLCAT | ||
|
@@ -111,6 +114,8 @@ | |
#undef HAVE_STRCHR | ||
#undef HAVE_STRRCHR | ||
#undef HAVE_STRSTR | ||
#undef HAVE_STRTOK_R | ||
#undef HAVE_STRTOK_S | ||
#undef HAVE_ITOA | ||
#undef HAVE__LTOA | ||
#undef HAVE__UITOA | ||
|
@@ -192,9 +197,9 @@ | |
#undef HAVE__EXIT | ||
|
||
#else | ||
#define HAVE_STDARG_H 1 | ||
#define HAVE_STDDEF_H 1 | ||
#define HAVE_STDINT_H 1 | ||
#define HAVE_STDARG_H 1 | ||
#define HAVE_STDDEF_H 1 | ||
#define HAVE_STDINT_H 1 | ||
#endif /* HAVE_LIBC */ | ||
|
||
#undef HAVE_ALTIVEC_H | ||
|
@@ -210,7 +215,6 @@ | |
#undef HAVE_DSOUND_H | ||
#undef HAVE_DXGI_H | ||
#undef HAVE_XINPUT_H | ||
#undef HAVE_ENDPOINTVOLUME_H | ||
#undef HAVE_MMDEVICEAPI_H | ||
#undef HAVE_AUDIOCLIENT_H | ||
#undef HAVE_XINPUT_GAMEPAD_EX | ||
|
@@ -383,6 +387,9 @@ | |
/* Enable Vulkan support */ | ||
#undef SDL_VIDEO_VULKAN | ||
|
||
/* Enable Metal support */ | ||
#undef SDL_VIDEO_METAL | ||
|
||
/* Enable system power support */ | ||
#undef SDL_POWER_LINUX | ||
#undef SDL_POWER_WINDOWS | ||
|
@@ -405,13 +412,18 @@ | |
/* Enable assembly routines */ | ||
#undef SDL_ASSEMBLY_ROUTINES | ||
#undef SDL_ALTIVEC_BLITTERS | ||
#undef SDL_ARM_SIMD_BLITTERS | ||
#undef SDL_ARM_NEON_BLITTERS | ||
|
||
/* Enable ime support */ | ||
#undef SDL_USE_IME | ||
|
||
/* Enable dynamic udev support */ | ||
#undef SDL_UDEV_DYNAMIC | ||
|
||
/* Enable dynamic libusb support */ | ||
#undef SDL_LIBUSB_DYNAMIC | ||
|
||
/* Enable dynamic libsamplerate support */ | ||
#undef SDL_LIBSAMPLERATE_DYNAMIC | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2019 Sam Lantinga <[email protected]> | ||
Copyright (C) 1997-2020 Sam Lantinga <[email protected]> | ||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
|
@@ -71,6 +71,7 @@ | |
#define HAVE_STRCHR 1 | ||
#define HAVE_STRRCHR 1 | ||
#define HAVE_STRSTR 1 | ||
#define HAVE_STRTOK_R 1 | ||
#define HAVE_STRTOL 1 | ||
#define HAVE_STRTOUL 1 | ||
#define HAVE_STRTOLL 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Simple DirectMedia Layer | ||
Copyright (C) 1997-2019 Sam Lantinga <[email protected]> | ||
Copyright (C) 1997-2020 Sam Lantinga <[email protected]> | ||
This software is provided 'as-is', without any express or implied | ||
warranty. In no event will the authors be held liable for any damages | ||
|
@@ -71,6 +71,7 @@ | |
#define HAVE_STRCHR 1 | ||
#define HAVE_STRRCHR 1 | ||
#define HAVE_STRSTR 1 | ||
#define HAVE_STRTOK_R 1 | ||
#define HAVE_STRTOL 1 | ||
#define HAVE_STRTOUL 1 | ||
#define HAVE_STRTOLL 1 | ||
|
@@ -137,7 +138,7 @@ | |
|
||
/* Enable MFi joystick support */ | ||
#define SDL_JOYSTICK_MFI 1 | ||
/*#define SDL_JOYSTICK_HIDAPI 1*/ | ||
#define SDL_JOYSTICK_HIDAPI 1 | ||
|
||
#ifdef __TVOS__ | ||
#define SDL_SENSOR_DUMMY 1 | ||
|
@@ -181,6 +182,10 @@ | |
#define SDL_VIDEO_VULKAN 1 | ||
#endif | ||
|
||
#if SDL_PLATFORM_SUPPORTS_METAL | ||
#define SDL_VIDEO_METAL 1 | ||
#endif | ||
|
||
/* Enable system power support */ | ||
#define SDL_POWER_UIKIT 1 | ||
|
||
|
Oops, something went wrong.