Anonymous Maarten
67d517907b
log: fix unused-variable warning when configuring SDL with -DSDL_LIBC=OFF
2023-01-11 16:31:27 -08:00
Sam Lantinga
0ad22cfe37
Fixed version validation
2023-01-11 15:11:41 -08:00
Francisco Javier Trujillo Mata
7f610cd969
Using UV instead of STQ
2023-01-11 15:10:51 -08:00
Francisco Javier Trujillo Mata
555183257d
Remove dummy flag
2023-01-11 15:10:51 -08:00
Sam Lantinga
d0aaf74ec0
Added an xcframework target to cover all supported Apple platforms
...
This is also used to create the release disk image
2023-01-11 14:41:30 -08:00
Sylvain
84cd7214bd
SDL_migration.cocci / rename_api.py: handle migration of enum/structure
...
and fix previous one in SDL_migration.cocci.
2023-01-11 23:33:14 +01:00
Ozkan Sezer
30516fd3a6
joystick/vita: add some sanity check to SDL_GetJoystickInstanceID result
...
Reference issue: https://github.com/libsdl-org/SDL/issues/7051
2023-01-11 21:56:50 +03:00
Ozkan Sezer
f046788a5a
joystick/vita: fix index value use returned by SDL_GetJoystickInstanceID
...
Reference issue: https://github.com/libsdl-org/SDL/issues/7051
2023-01-11 21:56:50 +03:00
Ozkan Sezer
85924687fd
fix SDL_GetSensorInstanceID() return code upon failure.
...
Reference issue: https://github.com/libsdl-org/SDL/issues/7051
2023-01-11 21:56:50 +03:00
Ozkan Sezer
0621a67350
fix SDL_GetJoystickInstanceID() return code upon failure
...
Reference issue: https://github.com/libsdl-org/SDL/issues/7051
2023-01-11 21:56:50 +03:00
Sam Lantinga
21a1508ceb
Re-add JNI_OnLoad to the symbols list so Android symbols are resolved properly
2023-01-10 21:15:21 -08:00
Sam Lantinga
0ead89747a
Fixed filename comment in SDL_intrin.h
2023-01-10 21:05:38 -08:00
Wohlstand
9c7aed74ba
SDLAudioManager.java: Fixed the support for Android older than API 23
...
(cherry picked from commit b425036808b3776da596dd103f598242652b51fb)
2023-01-10 20:15:59 -08:00
Sam Lantinga
95faeab96c
SDL_GetNumJoysticks() and SDL_GetNumSensors() are no longer in the API
2023-01-10 18:07:40 -08:00
Sam Lantinga
237086c917
Fixed Xcode 14.2 warnings
2023-01-10 15:51:14 -08:00
Sam Lantinga
dc280c17a0
Moved SDL_intrin.h back into the public headers for application use
2023-01-10 15:50:35 -08:00
Sam Lantinga
9f721d492a
Catch SDL_opengles2.h in rename_headers.py
2023-01-10 15:25:48 -08:00
Sam Lantinga
69b94145d3
Updated documentation for SDL_migration.cocci
...
Especially note that this can be installed and run in WSL on Windows
2023-01-10 07:54:18 -08:00
Anonymous Maarten
c4b471bd13
Ensure training new line in cocci files
2023-01-10 16:43:15 +01:00
Anonymous Maarten
ecc48b882d
migration: change 2nd arg of SDL_CreateRenderer to NULL if it was -1
2023-01-10 16:11:22 +01:00
Sylvain Becker
5066fcde69
Add SDL_migration.cocci for SDL2 to 3 migration ( #7042 )
...
* Add SDL_migration.cocci for SDL2 to 3 migration
2023-01-10 15:25:00 +01:00
Elad Lahav
413af2f5f1
Addressed comments
2023-01-10 06:19:40 -08:00
Elad Lahav
38b35a3414
Allow the use of posix_spawn() instead of vfork/execlp()
2023-01-10 06:19:40 -08:00
Sam Lantinga
56522034db
Fixed building with Visual Studio 2010
2023-01-09 18:30:23 -08:00
Narr the Reg
9fa55d9cab
hidapi: switch: Add user calibration support
2023-01-09 18:07:54 -08:00
Sam Lantinga
2aa9569b3e
Replaced SDL_SIMDAlloc(), SDL_SIMDRealloc(), and SDL_SIMDFree() with SDL_aligned_alloc() and SDL_aligned_free()
...
Fixes https://github.com/libsdl-org/SDL/issues/5641
2023-01-09 18:01:59 -08:00
Anonymous Maarten
9597c482fa
ci: add haiku to ci matrix
2023-01-10 02:39:09 +01:00
Anonymous Maarten
a486d0e2b2
ci: rename *.yaml -> *.yaml
2023-01-10 02:39:09 +01:00
Anonymous Maarten
049e6ff408
cmake: haiku uses CXX code, so enable it in C-only project
2023-01-10 02:39:09 +01:00
Anonymous Maarten
837416ef85
cmake: command-line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
2023-01-10 02:39:09 +01:00
Anonymous Maarten
aa7fdd6624
haiku: remove unused variable in SDL_BApp.h
2023-01-10 02:39:09 +01:00
Anonymous Maarten
0ab99ffb2a
cmake: add SDL_TESTS_TIMEOUT_MULTIPLIER to account for slower machines
2023-01-10 02:39:09 +01:00
Anonymous Maarten
f85ef6fc3c
haiku: fix use of SDL_ConvertSurfaceFormat
2023-01-10 02:39:09 +01:00
Sam Lantinga
5ed00d34aa
Document that condition variable mutexes can't be locked recursively.
...
Fixes https://github.com/libsdl-org/SDL/issues/5497
2023-01-09 15:59:39 -08:00
Sam Lantinga
e9b86eebf3
Functions which return function pointers now return SDL_FunctionPointer instead of void*
...
This fixes the clang warning "Cast between pointer-to-function and pointer-to-object is an extension"
You can define SDL_FUNCTION_POINTER_IS_VOID_POINTER in your project to restore the previous behavior.
Fixes https://github.com/libsdl-org/SDL/issues/2866
2023-01-09 15:46:21 -08:00
Sylvain
7275b2b352
SDL_GetTicks64: entry added in SDL_ENABLE_OLD_NAMES
2023-01-09 21:59:50 +01:00
Sam Lantinga
5feebcdce0
SDL_AddHintCallback() now returns a standard int result instead of void
...
Fixes https://github.com/libsdl-org/SDL/issues/7035
2023-01-09 12:09:30 -08:00
Sam Lantinga
fde78d12f2
Updated copyright for 2023
2023-01-09 09:41:41 -08:00
Sam Lantinga
78ccadd5a2
Speed up processing of update-copyright.sh
2023-01-09 09:38:36 -08:00
Sam Lantinga
504bce5187
Set SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS for the virtual joystick test
2023-01-09 09:16:10 -08:00
Sam Lantinga
c663e6d568
Revert "Always allow controller events for virtual joysticks regardless of focus state"
...
This reverts commit d94f2a9ee56abcbe84a95da91eb3a3319cb4d022.
Rather than changing behavior, we'll set SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS in the joystick tests
2023-01-09 09:05:40 -08:00
Sam Lantinga
dbd4b88abc
Generally removed generally
2023-01-09 09:04:05 -08:00
Sam Lantinga
40833d2526
Documented thread starvation issue raised in https://github.com/libsdl-org/SDL/pull/7023
2023-01-09 09:01:41 -08:00
Sam Lantinga
59308cb3e9
SDL_platform_defines.h is already included in SDL_platform.h
2023-01-09 08:40:11 -08:00
Anonymous Maarten
62297e7da5
cmake: avoid string(SUBSTRING) on short strings
...
CMake 3.1 and older throws an error when the input string is too short
2023-01-09 15:44:50 +01:00
Sylvain Becker
607ddd0e10
Merge pull request #7033 from 1bsyl/br_oldname_gettick64
...
Add oldname entry: GetTicks64() is renamed GetTicks()
2023-01-09 13:44:53 +01:00
Sylvain
4798c36197
Add oldname entry: GetTicks64() is renamed GetTicks()
2023-01-09 13:43:39 +01:00
yuanhecai
50af65a7dd
Fix loongarch64 support
...
HAS_LSX/LASX is modified as HAVE_LSX/LASX.
2023-01-09 09:11:50 +01:00
Ozkan Sezer
0d8c22acd2
cmake (CheckPTHREAD): remove _GNU_SOURCE define after bug #7026 fix
2023-01-09 01:30:37 +03:00
Sylvain
a486eeccf4
Remove one test that contains call of SDL_Quit() / SDL_Init() because it
...
conficts with the initializaion of test common.
(before it used SDL_VideoInit SDL_VideoQuit which weren't perturbated by SDL_Quit())
2023-01-08 12:39:23 -08:00