Skip to content

Commit 05c32fe

Browse files
author
dashodanger
committed
Update bundled MSVC SDL2 to latest release
1 parent f1b129d commit 05c32fe

File tree

15 files changed

+11
-7
lines changed

15 files changed

+11
-7
lines changed

.github/workflows/cmake.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,21 @@ jobs:
5858
- name: Extract w64devkit
5959
run: ${{github.workspace}}\w64devkit.exe -y
6060
- name: Download SDL2-devel
61-
run: invoke-webrequest https://github.com/libsdl-org/SDL/releases/download/release-2.30.8/SDL2-devel-2.30.8-mingw.zip -outfile ${{github.workspace}}\sdl2-devel.zip
61+
run: invoke-webrequest https://github.com/libsdl-org/SDL/releases/download/release-2.30.9/SDL2-devel-2.30.9-mingw.zip -outfile ${{github.workspace}}\sdl2-devel.zip
6262
- name: Extract SDL2-devel
6363
run: expand-archive -path ${{github.workspace}}\sdl2-devel.zip -destinationpath ${{github.workspace}}
6464
- name: Copy SDL2-devel contents to w64devkit
6565
run: |
66-
robocopy ${{github.workspace}}\SDL2-2.30.8\i686-w64-mingw32 ${{github.workspace}}\w64devkit\i686-w64-mingw32 /s ; if ($lastexitcode -lt 8) { $global:LASTEXITCODE = $null }
67-
robocopy ${{github.workspace}}\SDL2-2.30.8\i686-w64-mingw32 ${{github.workspace}}\w64devkit /s ; if ($lastexitcode -lt 8) { $global:LASTEXITCODE = $null }
66+
robocopy ${{github.workspace}}\SDL2-2.30.9\i686-w64-mingw32 ${{github.workspace}}\w64devkit\i686-w64-mingw32 /s ; if ($lastexitcode -lt 8) { $global:LASTEXITCODE = $null }
67+
robocopy ${{github.workspace}}\SDL2-2.30.9\i686-w64-mingw32 ${{github.workspace}}\w64devkit /s ; if ($lastexitcode -lt 8) { $global:LASTEXITCODE = $null }
6868
- name: Set environment variables and build
6969
run: |
7070
$env:Path = "${{github.workspace}}\w64devkit\bin;" + $env:Path
7171
cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_FLAGS="-isystem ${{github.workspace}}\w64devkit\include" -G "MinGW Makefiles"
7272
cmake --build build --config ${{env.BUILD_TYPE}}
7373
strip ${{github.workspace}}\edge-classic.exe
7474
- name: Copy SDL2 DLL
75-
run: copy-item -path ${{github.workspace}}\SDL2-2.30.8\i686-w64-mingw32\bin\SDL2.dll -destination ${{github.workspace}}
75+
run: copy-item -path ${{github.workspace}}\SDL2-2.30.9\i686-w64-mingw32\bin\SDL2.dll -destination ${{github.workspace}}
7676
- uses: actions/upload-artifact@v4
7777
with:
7878
name: edge-classic-mingw

libraries/sdl2/include/SDL2/SDL_audio.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ extern DECLSPEC int SDLCALL SDL_GetDefaultAudioInfo(char **name,
594594
* frames_ (with stereo output, two samples--left and right--would make a
595595
* single sample frame). This number should be a power of two, and may be
596596
* adjusted by the audio driver to a value more suitable for the hardware.
597-
* Good values seem to range between 512 and 8096 inclusive, depending on
597+
* Good values seem to range between 512 and 4096 inclusive, depending on
598598
* the application and CPU speed. Smaller values reduce latency, but can
599599
* lead to underflow if the application is doing heavy processing and cannot
600600
* fill the audio buffer in time. Note that the number of sample frames is

libraries/sdl2/include/SDL2/SDL_stdinc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ typedef uint64_t Uint64;
257257
#define SDL_PRIs64 "I64d"
258258
#elif defined(PRIs64)
259259
#define SDL_PRIs64 PRIs64
260-
#elif defined(__LP64__) && !defined(__APPLE__)
260+
#elif defined(__LP64__) && !defined(__APPLE__) && !defined(__EMSCRIPTEN__)
261261
#define SDL_PRIs64 "ld"
262262
#else
263263
#define SDL_PRIs64 "lld"

libraries/sdl2/include/SDL2/SDL_version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ typedef struct SDL_version
5959
*/
6060
#define SDL_MAJOR_VERSION 2
6161
#define SDL_MINOR_VERSION 30
62-
#define SDL_PATCHLEVEL 8
62+
#define SDL_PATCHLEVEL 9
6363

6464
/**
6565
* Macro to determine SDL version program was compiled against.

libraries/sdl2/include/SDL2/SDL_vulkan.h

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ extern "C" {
5252
VK_DEFINE_HANDLE(VkInstance)
5353
VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR)
5454

55+
/* Make sure to undef to avoid issues in case of later vulkan include */
56+
#undef VK_DEFINE_HANDLE
57+
#undef VK_DEFINE_NON_DISPATCHABLE_HANDLE
58+
5559
#endif /* !NO_SDL_VULKAN_TYPEDEFS */
5660

5761
typedef VkInstance SDL_vulkanInstance;

libraries/sdl2/lib/x64/SDL2.dll

-7 KB
Binary file not shown.

libraries/sdl2/lib/x64/SDL2.lib

0 Bytes
Binary file not shown.

libraries/sdl2/lib/x64/SDL2.pdb

6.35 MB
Binary file not shown.

libraries/sdl2/lib/x64/SDL2main.lib

0 Bytes
Binary file not shown.

libraries/sdl2/lib/x64/SDL2test.lib

945 KB
Binary file not shown.

libraries/sdl2/lib/x86/SDL2.dll

-7 KB
Binary file not shown.

libraries/sdl2/lib/x86/SDL2.lib

0 Bytes
Binary file not shown.

libraries/sdl2/lib/x86/SDL2.pdb

6.87 MB
Binary file not shown.

libraries/sdl2/lib/x86/SDL2main.lib

0 Bytes
Binary file not shown.

libraries/sdl2/lib/x86/SDL2test.lib

918 KB
Binary file not shown.

0 commit comments

Comments
 (0)