Sam Lantinga
e738cf80dc
Merge commit ' 65a38a4015' into main
2022-10-23 16:34:59 -07:00
Sam Lantinga
da4c97250a
Merge commit ' 3f1b5efcca' into main
2022-10-23 16:34:57 -07:00
Sam Lantinga
b3ba8f4065
Merge commit ' 3d415bc5d6' into main
2022-10-23 16:34:55 -07:00
Sam Lantinga
2d3e21ab0e
Merge commit ' f37db957f8' into main
2022-10-23 16:34:52 -07:00
Sam Lantinga
8047ece180
Merge commit ' 5ed091c12d' into main
2022-10-23 16:34:50 -07:00
Sam Lantinga
ef62b767f9
Merge commit ' 0823b5973a' into main
2022-10-23 16:34:48 -07:00
Sam Lantinga
e5fe522194
Merge commit ' 4264c0b674' into main
2022-10-23 16:34:46 -07:00
Sam Lantinga
57a98aa5e3
Merge commit ' 96361fc476' into main
2022-10-23 16:34:44 -07:00
Sam Lantinga
b5712c1bea
Merge commit ' 11d53c84a7' into main
2022-10-23 16:34:42 -07:00
Sam Lantinga
0d5fb2a0c2
Merge commit ' 94ac8ae08b' into main
2022-10-23 16:34:40 -07:00
Sam Lantinga
be3dc1acb5
Merge commit ' c6e8961979' into main
2022-10-23 16:34:38 -07:00
Sam Lantinga
3bc84acebc
Merge commit ' d542f43b2a' into main
2022-10-23 16:34:36 -07:00
Sam Lantinga
f20c2759f9
Merge commit ' f28cf2b0d3' into main
2022-10-23 16:34:34 -07:00
Sam Lantinga
284df27b5a
Merge commit ' e7ab581d79' into main
2022-10-23 16:34:32 -07:00
Ozkan Sezer
65a38a4015
hidapi, libusb: remove os/2 symbol load hack after os/2 loadso updates
2022-10-22 08:40:16 -07:00
Ozkan Sezer
3f1b5efcca
os2 loadso improvements:
...
- SDL_LoadObject: upon failure, strip the .dll extension and retry,
but only if module name has no path.
- SDL_LoadFunction: upon failure, retry with an underscore prepended,
e.g. for gcc-built dlls.
2022-10-22 08:40:16 -07:00
Ozkan Sezer
3d415bc5d6
loadso, dlsym, SDL_LoadFunction: cleanup the underscored name path.
...
- strlcpy was passed a wrong buffer length parameter. has worked so
far by luck.
- use memcpy instead of strlcpy for simplicity.
- 'append' has been a typo: should be 'prepend'.
2022-10-22 07:25:46 -04:00
Brad Smith
f37db957f8
Use -lpthread on OpenBSD
2022-10-21 16:53:26 -07:00
Anonymous Maarten
5ed091c12d
cmake: fix reporting of SDL_TESTS
2022-10-21 15:32:05 +02:00
Anonymous Maarten
0823b5973a
cmake: fix finding wayland-libdecor
...
It was broken in 11d53c84a7
2022-10-21 15:31:43 +02:00
Ozkan Sezer
4264c0b674
os2: fix error message for SDL_LoadObject()
2022-10-21 11:21:40 +03:00
Anonymous Maarten
96361fc476
cmake: create and install sdl2.pc for MSVC & WATCOM
2022-10-20 19:02:31 +02:00
Anonymous Maarten
11d53c84a7
cmake: use pkg-config's library dirs as hint for finding a shared library
2022-10-20 19:01:28 +02:00
Anonymous Maarten
94ac8ae08b
cmake: else() does not need an argument
2022-10-20 13:29:35 +02:00
Sam Lantinga
c6e8961979
Define _USE_MATH_DEFINES for Visual Studio (thanks @pionere!)
...
Fixes https://github.com/libsdl-org/SDL/issues/3790
2022-10-19 08:05:47 -07:00
Anonymous Maarten
d542f43b2a
cmake: add SDL_INSTALL_CMAKEDIR cache variable to override location of cmake config files
2022-10-19 16:41:25 +02:00
Brad Smith
f28cf2b0d3
Also remove the OpenBSD comment about OSS
2022-10-19 06:40:19 -07:00
Ryan C. Gordon
e7ab581d79
coreaudio: Dispose of AudioQueue before waiting on the thread.
...
Otherwise the thread might block for a long time (more than 10 seconds!).
It's not clear to me why this happens, or why its safe to do this with a
resource that's still in use, but we have, until recently, always
disposed of the AudioQueue first, so changing back is probably okay.
Also changed the disposal to allow in-flight buffers to reach hardware;
otherwise you lose the last little bit of audio that's already been queued
but not played, which you can hear clearly in the loopwave test program.
Fixes #6377 .
2022-10-19 09:14:16 -04:00
Sam Lantinga
5b6d36fd9f
Merge commit ' aefc6b5bb5' into main
2022-10-18 09:21:53 -07:00
Sam Lantinga
764e7c4f4b
Merge commit ' 965ba1e097' into main
2022-10-18 09:21:51 -07:00
Sam Lantinga
8b6f726546
Merge commit ' dfbb93dd0c' into main
2022-10-18 09:21:48 -07:00
Sam Lantinga
86695af483
Merge commit ' e8a4c23ce5' into main
2022-10-18 09:21:46 -07:00
Sam Lantinga
8f7577d70a
Merge commit ' 790fa3156c' into main
2022-10-18 09:21:44 -07:00
Sam Lantinga
ac68c34f76
Merge commit ' 3ec4c9b3b9' into main
2022-10-18 09:21:42 -07:00
Sam Lantinga
66226f6520
Merge commit ' 3d99d31026' into main
2022-10-18 09:21:40 -07:00
Sam Lantinga
aefc6b5bb5
Renamed variables, index is the singular of indices
2022-10-18 08:40:03 -07:00
GNQG
965ba1e097
fix SDL_SendEditingText when long composition text is enabled and strlen(text) == SDL_TEXTEDITINGEVENT_TEXT_SIZE
2022-10-18 08:26:27 -07:00
Sylvain
dfbb93dd0c
SDL_Renderer / GLES2: add specific list of indice to render rect (see #6401 )
2022-10-18 11:31:30 +02:00
Sylvain
e8a4c23ce5
Revert commit 790fa3156c.
...
SDL_BLENDMODE_INVALID case is probably used for custom blendmode
2022-10-18 10:45:01 +02:00
Sylvain
790fa3156c
Fix warning: enumeration value 'SDL_BLENDMODE_INVALID' not explicitly handled in switch
2022-10-18 10:41:10 +02:00
Sylvain
3ec4c9b3b9
Merge remote-tracking branch 'refs/remotes/origin/main'
2022-10-18 10:37:22 +02:00
Sylvain
3d99d31026
Fixed bug #6401 - back-end can choose the order the triangles when rendering rects, attempt to fix small glitch rendering.
2022-10-18 10:34:56 +02:00
Wouter Wijsman
428b5ae546
PSP: Reorder extra imports
2022-10-18 10:34:51 +02:00
Sylvain
285cbf6fdd
Revert commit 485bb3565b.
...
"Fixed bug #6401 - change the order of triangles when using RenderCopy, RenderCopyEx and RenderFillRect"
because the glitch reappears on other backend
2022-10-18 10:04:06 +02:00
Sam Lantinga
0bc852ce53
Revert "Disable the RAWINPUT joystick driver by default"
...
Disabling RAWINPUT on Windows 10 causes these issues:
* All Xbox controllers are named "XInput Controller".
* Trigger rumble no longer works.
* "XInput Controllers" are now also listed as separate haptic devices
2022-10-17 17:43:06 -07:00
Deve
7e1088167a
Fixed command modifier on macOS
2022-10-17 16:49:21 -07:00
Deve
cdf312c83d
Fixed mouse warp after resizing window on macOS.
2022-10-17 16:27:40 -07:00
David Jacewicz
7c7cd2a605
Fix issue #6037 (incorrect modifier flags on Wayland)
2022-10-17 13:27:39 -07:00
Wouter Wijsman
3903f4c88a
PSP: Use vramalloc instead of conflicting valloc function
...
The libpspvram library was offering a function with conflicted with valloc. This has been renamed now, so SDL2 had to be updated for it.
2022-10-17 21:59:38 +02:00
Sam Lantinga
333935ff3f
Make sure we completely unlock joysticks when opening HIDAPI devices
...
Also lock the joysticks when adding and removing Android joysticks
2022-10-17 11:10:53 -07:00