Update SDL3 from 3.2.4 to 3.2.20

This commit is contained in:
Sven Balzer
2025-08-27 21:24:05 +02:00
parent 6283160467
commit ad651462df
332 changed files with 20334 additions and 4852 deletions
-1
View File
@@ -55,7 +55,6 @@ static const char *video_usage[] = {
"[--input-focus]",
"[--keyboard-grab]",
"[--logical-presentation disabled|match|stretch|letterbox|overscan|integer_scale]",
"[--logical-scale-quality nearest|linear|best]",
"[--logical WxH]",
"[--max-geometry WxH]",
"[--maximize]",
+1 -1
View File
@@ -144,7 +144,7 @@ Sint32 SDLTest_RandomIntegerInRange(Sint32 min, Sint32 max)
Uint64 range = (Sint64)max - (Sint64)min;
if (range < SDL_MAX_SINT32) {
return min + (Sint32) SDL_rand_r(&rndContext, (Sint32) range + 1);
return min + SDL_rand_r(&rndContext, (Sint32) range + 1);
} else {
Uint64 add = SDL_rand_bits_r(&rndContext) | ((Uint64) SDL_rand_bits_r(&rndContext) << 32);
return (Sint32) (min + (Sint64) (add % (range + 1)));
+3
View File
@@ -515,6 +515,7 @@ int SDLTest_ExecuteTestSuiteRunner(SDLTest_TestSuiteRunner *runner)
arraySuites = SDL_malloc(nbSuites * sizeof(int));
if (!arraySuites) {
SDL_free((void *)failedTests);
return SDL_OutOfMemory();
}
for (i = 0; i < nbSuites; i++) {
@@ -586,6 +587,8 @@ int SDLTest_ExecuteTestSuiteRunner(SDLTest_TestSuiteRunner *runner)
arrayTestCases = SDL_malloc(nbTestCases * sizeof(int));
if (!arrayTestCases) {
SDL_free(arraySuites);
SDL_free((void *)failedTests);
return SDL_OutOfMemory();
}
for (j = 0; j < nbTestCases; j++) {
+1
View File
@@ -454,4 +454,5 @@ void SDLTest_LogAllocations(void)
#undef ADD_LINE
SDL_Log("%s", message);
SDL_free_orig(message);
}