Ozkan Sezer
7935cfacc5
SDL_mfijoystick.m: use __typeof instead of typeof.
...
Fixes https://github.com/libsdl-org/SDL/issues/5319
2022-02-08 18:55:10 +03:00
Ozkan Sezer
9b817248c5
SDL_spinlock.c: define HAVE_GCC_ATOMICS for windows/clang builds,
...
... if not already defined.
Fixes https://github.com/libsdl-org/SDL/issues/5333
diff --git a/src/atomic/SDL_spinlock.c b/src/atomic/SDL_spinlock.c
index bdd347e..4f10741 100644
--- a/src/atomic/SDL_spinlock.c
+++ b/src/atomic/SDL_spinlock.c
@@ -28,6 +28,12 @@
#include "SDL_mutex.h"
#include "SDL_timer.h"
+#if defined(__WIN32__) && defined(__clang__)
+# ifndef HAVE_GCC_ATOMICS
+# define HAVE_GCC_ATOMICS 1
+# endif
+#endif
+
#if !defined(HAVE_GCC_ATOMICS) && defined(__SOLARIS__)
#include <atomic.h>
#endif
2022-02-08 18:50:02 +03:00
Sylvain
f185711203
Fixed bug #5310 : Android, Undefined reference to AAssetManager_fromJava
2022-02-08 16:18:01 +01:00
Sylvain
68dd84f1de
Android: TouchDevice -1 is reserved for SDL synthetic devce (See #5322 )
2022-02-08 11:42:24 +01:00
Sylvain
94e5c3f30e
testgesture: display device name with SDL_GetTouchName()
2022-02-08 11:40:39 +01:00
SDL Wiki Bot
580d231822
Sync wiki -> header
2022-02-08 10:37:04 +00:00
Sylvain
e7e44df039
Dynapi: add SDL_GetTouchName() entry
2022-02-08 11:34:41 +01:00
Sylvain
34d4f5b14e
Fixed bug #2032 : add SDL_GetTouchName to expose the driver name of the device (Thanks @mgerhardy!)
2022-02-08 11:32:20 +01:00
Ivan Epifanov
8ce003a42c
Vita: credit cpasjuste
2022-02-07 15:36:42 -08:00
Sylvain
14bc3bf4ec
Android: fix typo to register TOUCHSCREEN device (see #5322 , #2718 )
2022-02-07 22:20:05 +01:00
Frank Praznik
53091e36a3
audio: pipewire: Remove the hard upper bound on rates and buffer sizes
...
Remove the hard upper limit of 8192 samples and instead use the buffer sizes provided by Pipewire to determine the size of the intermediate input buffer and whether double buffering is required for output streams. This allows for higher latency streams to potentially avoid double-buffering in the output case, and we can guarantee that the intermediate input buffer will always be large enough to handle whatever Pipewire may deliver.
As the buffer size calculations occur in a callback in the Pipewire processing thread itself, the stream readiness check has been modified to wait on two distinct flags set when the buffers have been configured and when the stream is ready and running.
2022-02-07 15:11:31 -05:00
Frank Praznik
66866249a2
audio: pipewire: Condition variable doesn't need to be atomic
...
The condition variable is guarded by a mutex, so no need for it to be atomic.
2022-02-07 15:11:31 -05:00
Luke Street
0cb39ed468
cmake: Fix SDL_LIBUSB_DYNAMIC soname
2022-02-07 14:22:31 -05:00
Sylvain
b0dd4c7d36
SDL_Render OpenGL: do batching like in the GLES2 backend (with no VBO)
2022-02-07 14:02:20 -05:00
Sylvain
90f0d2ce49
Revert OpenGL point drawing performance, do to proper batching
2022-02-07 14:02:20 -05:00
waddlesplash
423feac69b
haiku: Actually remove BDirectWindow and fix OpenGL handling.
...
This provides the other half of 05c72b113c830392f8b08532317ef07972b29a2e.
2022-02-06 19:19:21 -05:00
Ozkan Sezer
9403543671
cmake: enable_language(OBJC) only for APPLE
2022-02-05 18:50:00 +03:00
Ozkan Sezer
3c9ac4489e
cmake: enable_language(OBJC) to fix check_objc_source_compiles().
2022-02-05 18:45:50 +03:00
Ozkan Sezer
686a0f3456
cmake: include CheckOBJCSourceCompiles for cmake >= 3.16
...
c.f. bugs #5011 and #3912
2022-02-05 18:28:24 +03:00
pionere
6d5592a201
minor cleanup of SDL_CreateRenderer
2022-02-05 10:05:25 -05:00
Ozkan Sezer
e8c48981f9
pthread/SDL_systhread.c: always include errno.h
...
fixes build for several targets after commit 87b02d3
for bug #5283 .
2022-02-05 08:56:56 +03:00
Sam Lantinga
5c4fff7f63
Don't fail to get battery status if the upower refresh call fails
2022-02-04 14:02:44 -08:00
Ozkan Sezer
c8cee0b8ca
OS2_HasClipboardText: store the boolean result before closing clipboard.
...
just in case..
2022-02-04 23:28:56 +03:00
Ozkan Sezer
b5614d0c6e
cmake: fix UWP joystick.
...
from: https://github.com/microsoft/vcpkg/blob/master/ports/sdl2/0005-Fix-uwp-joystick.patch
2022-02-04 20:05:14 +03:00
Ozkan Sezer
c93e552068
minor update to winrt/SDL_sysurl.cpp
...
from: https://github.com/microsoft/vcpkg/blob/master/ports/sdl2/0006-Update-SDL_sysurl.cpp.patch
2022-02-04 20:03:50 +03:00
Ozkan Sezer
050a5e1a15
removed unused SDL_config_wiz.h
2022-02-04 20:02:20 +03:00
Ozkan Sezer
c459eceee1
removed unused Makefile.wiz
2022-02-04 19:50:50 +03:00
Ozkan Sezer
3b9e6c1cec
SDL_os2video.c: fixed HasClipboardText() semantics.
...
Empty string in clipboard is expected to give FALSE by SDL_HasClipboardText.
Noticed in a commit by josch1710 in bitwiseworks' os/2 fork.
2022-02-04 19:50:20 +03:00
Joshua Ashton
86b7a0642f
Add additional VID/PIDs for Anne Pro II
...
This thing changes its VID/PID on firmware revisions...
2022-02-04 08:45:19 -08:00
Sam Lantinga
dd69c28d6f
Added a mapping for the Xbox Series X controller, firmware version 5.11.3118.0, connected to Linux via Bluetooth
2022-02-03 18:01:34 -08:00
Temdog007
b59e75c259
Handle menu button press from controller
2022-02-02 21:21:44 -08:00
Ravbug
2005dd9595
UWP build ( #5299 )
...
* Add UWP-x64 action
* Fix formatting
* Fix missing -
2022-02-02 14:06:52 -08:00
pionere
2cfc83eab7
sync D3D_RenderReadPixels with D3D11_RenderReadPixels
...
- use the result of SDL_ConvertPixels to propagate error
- get rid of the verbose error message of D3D11_RenderReadPixels in case SDL_ConvertPixels failed
2022-02-02 14:56:38 -05:00
pionere
3bef4a5da6
cleanup error-handling in SDL_egl.c
...
- always set error message in SDL_EGL_ChooseConfig / SDL_EGL_CreateContext
- assume SDL_EGL_DeleteContext does not alter the error message
- sync generic error message of SDL_EGL_MakeCurrent with SDL_EGL_Get/SetSwapInterval
- do not overwrite error message of SDL_EGL_ChooseConfig in WINRT_CreateWindow
2022-02-02 14:56:21 -05:00
pionere
b5c5052608
cleanup error-handling in SDL_bmp.c
...
- add missing error-message in SDL_LoadBMP_RW
- check return value of SDL_RWtell in SDL_LoadBMP_RW
- use standard SDL_EFREAD error instead of custom strings
+ adjust return type of readRlePixels
2022-02-02 14:55:36 -05:00
pionere
19df4af2aa
simplify SDL_DUMMY/OFFSCREEN_CreateWindowFramebuffer
2022-02-02 14:45:48 -05:00
SonicMastr
ecd922b5cf
Fix touch holding detection after #5244 changes
2022-02-02 08:55:26 -08:00
Sylvain
df0d696a62
RISCOS: attempt to fix compilation ERANGE
2022-02-02 15:22:14 +01:00
Sylvain
87b02d3795
Linux thread name limitation: test for ERANGE (see bug #5283 )
2022-02-02 15:09:29 +01:00
Francisco Javier Trujillo Mata
daea9fa19e
Remove SDL_config_psp and references
2022-02-02 08:36:39 -05:00
Francisco Javier Trujillo Mata
ff5f5d0ef4
Updating Readme-psp info
2022-02-02 08:36:39 -05:00
Francisco Javier Trujillo Mata
ec632aba15
Remove legacy and unused Makefile.psp
2022-02-02 08:36:39 -05:00
Sylvain
220a9596f3
Remove testing instruction (see bug #5283 )
2022-02-02 10:01:11 +01:00
Sylvain
9e46a512b1
Fixed bug #5283 - limit thread name to 16 characters when using pthread_setname_np()
2022-02-02 09:58:15 +01:00
Weng Xuetian
b11dfd7611
Only generate key repetition for keys that should repeat on wayland.
...
This fix repetition on modifier keys, e.g. Control.
2022-02-01 17:56:04 -05:00
Weng Xuetian
a90a2e7582
Fix text_input_v3 preedit string
...
For every batch of text_input_v3 updates, if there is no preedit in this
batch, preedit should be cleared.
2022-02-01 15:51:26 -05:00
Sam Lantinga
03c4405b3b
Fixed D-Bus battery refresh call
2022-02-01 09:33:18 -08:00
SDL Wiki Bot
e1cf8d8748
Sync wiki -> header
2022-02-01 16:58:05 +00:00
SDL Wiki Bot
4fa21dd65b
Sync wiki -> header
2022-02-01 10:37:05 +00:00
Sylvain
d46cc18afc
Fix function comment
2022-02-01 11:35:26 +01:00