ab55ec4850
Fix use-after-free SBH corruption due to overlapped ReadFile in hidapi not being canceled for all threads before device close
Sam Lantinga
2021-01-01 11:12:41 -08:00
480c1f9fef
Make sure we're not starving report reads when there's lots of rumble
Sam Lantinga
2021-01-01 11:12:36 -08:00
223af86c62
Added SDL_RenderGetD3D11Device() to get access to the device associated with the D3D11 renderer
Sam Lantinga
2021-01-01 11:12:30 -08:00
5f0b2a7f54
Fixed resource leak with D3D11 NV12 textures
Sam Lantinga
2021-01-01 11:12:22 -08:00
21003b7db2
[KMS/DRM] Small refactoring on the SwapWindow function.
Manuel Alfayate Corchete
2020-12-31 14:31:29 +01:00
e1fb969b76
[KMS/DRM] Correct comments about last bugfix.
Manuel Alfayate Corchete
2020-12-31 01:40:15 +01:00
e34caa9779
[KMS/DRM] Correct EGL/GL library loading on window creation, thus saving window re-creation.
Manuel Alfayate Corchete
2020-12-31 01:31:57 +01:00
d81fe9239f
SDL_BlitScaled: remove un needed -1 +1 offset in calculation
Sylvain Becker
2020-12-30 22:03:32 +01:00
8a32ee24db
removed MSVC strtok_s use from SDL_strtokr().
Ozkan Sezer
2020-12-30 01:00:24 +03:00
0684572ccc
Added a hint to control whether the player LEDs should be lit to indicate which player is associated with a PS5 controller.
Sam Lantinga
2020-12-29 12:13:10 -08:00
6116ccf035
fix configure warnings when checking dbus/dbus.h and ibus-1.0/ibus.h
Ozkan Sezer
2020-12-29 21:20:28 +03:00
f175824172
config.sub, config.guess: go back to backtick .. substitutions.
Ozkan Sezer
2020-12-29 20:51:10 +03:00
80cf8a8b76
SDL_BlitScaled: also prevent crash if dest width or height is negative
Sylvain Becker
2020-12-29 17:29:31 +01:00
f08b9a5b6b
SDL_BlitScaled: prevent crash if dest width or height is 0
Sylvain Becker
2020-12-29 16:02:52 +01:00
427c96ec11
[KMS/DRM] Rework some functions.
Manuel Alfayate Corchete
2020-12-29 14:24:38 +01:00
67f0b9b86d
Fixed bug 5418 - Add system features detection for Elbrus (E2K)
Sam Lantinga
2020-12-28 20:58:47 -08:00
3cb0e840e6
Fixed bug 5422 - KMSDRM_LEGACY: Add OpenBSD support
Sam Lantinga
2020-12-28 11:47:53 -08:00
8fc0baad98
Add SDL_cond implementation using Windows Condition Variables Is automatically used when the SRW SDL_mutex implementation is active. Otherwise falls back to the generic implementation.
Joel Linn
2020-12-28 11:43:11 -08:00
2443e51e0e
Add optional suffix _generic to generic SDL_cond impl Allows for runtime selectable implementation
Joel Linn
2020-12-28 11:42:49 -08:00
7539ac8087
[KMS/DRM] Restore hacky code to point to TTY buffer on surface destruction b/c I lack alternatives.
Manuel Alfayate Corchete
2020-12-28 18:22:07 +01:00
5dabc4d72f
Revert changeset 14590 544ac819e8b3 , does not fully fix
Sylvain Becker
2020-12-28 18:17:25 +01:00
9efdafd43d
SDL_RenderCopy: scale before doing intersection this prevents drawing 1 pixel outside the screen, in letterbox mode
Sylvain Becker
2020-12-28 18:07:03 +01:00
86b81abea6
[KMS/DRM_LEGACY] Prevent mouse cursor from staying onscreen after window destruction. Patch by Ozkan Sezer.
Manuel Alfayate Corchete
2020-12-28 16:19:19 +01:00
0feaf7d196
[KMS/DRM][Vulkan] Correct non-existing property. Remove hacky surface destruction code (TTY buffer isn't there after a Vulkan window is created).
Manuel Alfayate Corchete
2020-12-28 14:37:58 +01:00
9f6fddb40f
CMake: don't check for --no-undefined linker flag for OpenBSD (bug #5174)
Ozkan Sezer
2020-12-27 05:20:10 +03:00
46d31d570d
[KMS/DRM][Vulkan] Fix segfault when changing fullscren mode and permanent cursor when changing between Vulkan and GL renderers in vkQuake3. Tidy up window destruction code.
Manuel Alfayate Corchete
2020-12-27 00:43:06 +01:00
e7c479414b
Disable WaitOnAddress SDL_sem implementation on Windows Phone Apps that use the required APIs do not pass certification.
Joel Linn
2020-12-25 17:10:02 +03:00
5b64fdc9bf
thread/windows: Remove synchronization.lib from WinPhone81 dependencies synch APIs are implicitly available on this platform.
Joel Linn
2020-12-25 10:41:20 +03:00
d6afc1c608
thread/windows: Statically link synchronization APIs on WINRT GetModuleHandleW is not available on those platforms --- .../WinPhone81_VS2013/SDL-WinPhone81.vcxproj | 8 ++++---- VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.vcxproj | 12 ++++++------ src/thread/windows/SDL_sysmutex.c | 12 ++++++++++++ src/thread/windows/SDL_syssem.c | 11 +++++++++++ 4 files changed, 33 insertions(+), 10 deletions(-)
Joel Linn
2020-12-25 04:00:20 +03:00
ff913a22f4
Fixed compile warnings on platforms without hidapi support
Sam Lantinga
2020-12-23 16:16:55 -08:00
047b20e3b6
Fixed compile warnings on platforms without hidapi support
Sam Lantinga
2020-12-23 16:11:16 -08:00
9838611a8b
Fixed compiler crash building for iOS with clang 11.0.3
Sam Lantinga
2020-12-23 15:52:12 -08:00
4aebad77bd
SDL_SoftStretchLowerLinear: try to make xcode buildbot compile (Bug 5313)
Sylvain Becker
2020-12-23 22:50:50 +01:00
93ccdee8c1
Fixed bug 5404 - stdlib: Added SDL_round, SDL_roundf, SDL_lround and SDL_lroundf
Sam Lantinga
2020-12-23 13:47:49 -08:00
d0b8295c0d
Add SDL_sem implementation using Atomics and WaitOnAddress API. Keep Semaphore Kernel Object impl for Windows 7 and older - choose at runtime
Joel Linn
2020-12-23 13:36:46 -08:00
2b040cebbe
Atomic test: Fix use after free SDL_SemPost() was called by the FIFO threads after the semaphore was freed because the main thread actually synchronized on the writerRunning/readersRunning count and not the semaphores itself.
Joel Linn
2020-12-23 13:36:23 -08:00
6267b95177
Semaphore test: Add overhead tests.
Joel Linn
2020-12-23 13:36:02 -08:00
95a6d4e848
Semaphore test: Put test into separate function.
Joel Linn
2020-12-23 13:35:35 -08:00
548cb90893
Add SDL_mutex implementation using Windows Slim Reader/Writer Locks Keep Critical Section impl for Windows XP/Vista - choose at runtime v2: - Add SRW definitions as suggested by Ozkan Sezer Allows building against older platform headers. - Rename "hidden" function parameter mutex_ to _mutex
Joel Linn
2020-12-23 13:33:36 -08:00