Skip to content

Commit

Permalink
update SDL2 to latest official 2.30.9 version
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Nov 2, 2024
1 parent afbad92 commit 8e0159e
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Windows/SDL2/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 1997-2022 Sam Lantinga <[email protected]>
Copyright (C) 1997-2024 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
Expand Down
2 changes: 1 addition & 1 deletion Windows/SDL2/bin/sdl2-config
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ while test $# -gt 0; do
lib_suffix=$optarg
;;
--version)
echo 2.30.8
echo 2.30.9
;;
--cflags)
echo -I${prefix}/include -Dmain=SDL_main
Expand Down
2 changes: 1 addition & 1 deletion Windows/SDL2/include/SDL_audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ extern DECLSPEC int SDLCALL SDL_GetDefaultAudioInfo(char **name,
* frames_ (with stereo output, two samples--left and right--would make a
* single sample frame). This number should be a power of two, and may be
* adjusted by the audio driver to a value more suitable for the hardware.
* Good values seem to range between 512 and 8096 inclusive, depending on
* Good values seem to range between 512 and 4096 inclusive, depending on
* the application and CPU speed. Smaller values reduce latency, but can
* lead to underflow if the application is doing heavy processing and cannot
* fill the audio buffer in time. Note that the number of sample frames is
Expand Down
4 changes: 2 additions & 2 deletions Windows/SDL2/include/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-2.30.8 (" SDL_VENDOR_INFO ")"
#define SDL_REVISION "SDL-2.30.9 (" SDL_VENDOR_INFO ")"
#else
#define SDL_REVISION "SDL-2.30.8"
#define SDL_REVISION "SDL-2.30.9"
#endif
2 changes: 1 addition & 1 deletion Windows/SDL2/include/SDL_stdinc.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ typedef uint64_t Uint64;
#define SDL_PRIs64 "I64d"
#elif defined(PRIs64)
#define SDL_PRIs64 PRIs64
#elif defined(__LP64__) && !defined(__APPLE__)
#elif defined(__LP64__) && !defined(__APPLE__) && !defined(__EMSCRIPTEN__)
#define SDL_PRIs64 "ld"
#else
#define SDL_PRIs64 "lld"
Expand Down
2 changes: 1 addition & 1 deletion Windows/SDL2/include/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 30
#define SDL_PATCHLEVEL 8
#define SDL_PATCHLEVEL 9

/**
* Macro to determine SDL version program was compiled against.
Expand Down
4 changes: 4 additions & 0 deletions Windows/SDL2/include/SDL_vulkan.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ extern "C" {
VK_DEFINE_HANDLE(VkInstance)
VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR)

/* Make sure to undef to avoid issues in case of later vulkan include */
#undef VK_DEFINE_HANDLE
#undef VK_DEFINE_NON_DISPATCHABLE_HANDLE

#endif /* !NO_SDL_VULKAN_TYPEDEFS */

typedef VkInstance SDL_vulkanInstance;
Expand Down
Binary file modified Windows/SDL2/lib/SDL2.dll
Binary file not shown.
Binary file modified Windows/SDL2/lib64/SDL2.dll
Binary file not shown.

0 comments on commit 8e0159e

Please sign in to comment.