Skip to content

Commit

Permalink
deps: update sdl2 to 2.28.2
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Aug 3, 2023
1 parent 0d1e6fc commit 7b34f76
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deps/sdl2/bin/sdl2-config
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ while test $# -gt 0; do
echo $exec_prefix
;;
--version)
echo 2.28.1
echo 2.28.2
;;
--cflags)
echo -I${prefix}/include/SDL2 -D_THREAD_SAFE
Expand Down
2 changes: 1 addition & 1 deletion deps/sdl2/include/SDL2/SDL_atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ typedef void (*SDL_KernelMemoryBarrierFunc)();
/* "REP NOP" is PAUSE, coded for tools that don't know it by that name. */
#if (defined(__GNUC__) || defined(__clang__)) && (defined(__i386__) || defined(__x86_64__))
#define SDL_CPUPauseInstruction() __asm__ __volatile__("pause\n") /* Some assemblers can't do REP NOP, so go with PAUSE. */
#elif (defined(__arm__) && __ARM_ARCH >= 7) || defined(__aarch64__)
#elif (defined(__arm__) && defined(__ARM_ARCH) && __ARM_ARCH >= 7) || defined(__aarch64__)
#define SDL_CPUPauseInstruction() __asm__ __volatile__("yield" ::: "memory")
#elif (defined(__powerpc__) || defined(__powerpc64__))
#define SDL_CPUPauseInstruction() __asm__ __volatile__("or 27,27,27");
Expand Down
9 changes: 9 additions & 0 deletions deps/sdl2/include/SDL2/SDL_hints.h
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,15 @@ extern "C" {
*/
#define SDL_HINT_JOYSTICK_THREAD "SDL_JOYSTICK_THREAD"

/**
* \brief A variable controlling whether Windows.Gaming.Input should be used for controller handling.
*
* This variable can be set to the following values:
* "0" - WGI is not used
* "1" - WGI is used (the default)
*/
#define SDL_HINT_JOYSTICK_WGI "SDL_JOYSTICK_WGI"

/**
* \brief Determines whether SDL enforces that DRM master is required in order
* to initialize the KMSDRM video backend.
Expand Down
4 changes: 2 additions & 2 deletions deps/sdl2/include/SDL2/SDL_revision.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define SDL_REVISION_NUMBER 0

#ifdef SDL_VENDOR_INFO
#define SDL_REVISION "SDL-release-2.28.1-0-g4761467b2 (" SDL_VENDOR_INFO ")"
#define SDL_REVISION "SDL-release-2.28.2-0-g031912c4b (" SDL_VENDOR_INFO ")"
#else
#define SDL_REVISION "SDL-release-2.28.1-0-g4761467b2"
#define SDL_REVISION "SDL-release-2.28.2-0-g031912c4b"
#endif
2 changes: 1 addition & 1 deletion deps/sdl2/include/SDL2/SDL_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ typedef struct SDL_version
*/
#define SDL_MAJOR_VERSION 2
#define SDL_MINOR_VERSION 28
#define SDL_PATCHLEVEL 1
#define SDL_PATCHLEVEL 2

/**
* Macro to determine SDL version program was compiled against.
Expand Down
2 changes: 1 addition & 1 deletion deps/sdl2/lib/cmake/SDL2/SDL2ConfigVersion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version.
# The variable CVF_VERSION must be set before calling configure_file().

set(PACKAGE_VERSION "2.28.1")
set(PACKAGE_VERSION "2.28.2")

if (PACKAGE_FIND_VERSION_RANGE)
# Package version must be in the requested version range
Expand Down
Binary file modified deps/sdl2/lib/libSDL2.a
Binary file not shown.
2 changes: 1 addition & 1 deletion deps/sdl2/lib/pkgconfig/sdl2.pc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ includedir=${prefix}/include

Name: sdl2
Description: Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
Version: 2.28.1
Version: 2.28.2
Requires.private:
Conflicts:
Libs: -L${libdir} -lSDL2 -lSDL2 -Wl,-framework,CoreVideo -Wl,-framework,Cocoa -Wl,-framework,IOKit -Wl,-framework,ForceFeedback -Wl,-framework,Carbon -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AVFoundation -Wl,-framework,Foundation -Wl,-weak_framework,Metal -Wl,-weak_framework,QuartzCore -lm
Expand Down

0 comments on commit 7b34f76

Please sign in to comment.