|
5b36a527
|
2022-02-08T12:30:28
|
|
audio: pipewire: Remove redundant locks
The io_list_check_add() and io_list_remove() functions are only ever called from within the Pipewire thread loop, so the locks are redundant. io_list_sort() is called from within a lock in the device detection function, so those additional locks are redundant as well.
|
|
48b4d1c4
|
2022-02-08T12:20:52
|
|
audio: pipewire: Convert atomic hotplug conditional variables to SDL_bool
The hotplug loop condition variables are always guarded by the loop mutex while the loop is running, so they don't need to be atomic.
|
|
67f12ede
|
2022-02-08T21:32:50
|
|
move bug #5333 fix to headers
|
|
54304b97
|
2022-02-08T18:31:43
|
|
Fix rotation direction and center point on PSP
|
|
2b572dff
|
2022-02-08T18:03:11
|
|
Make RenderCopyEx rotate around center
This still isn't perfect. The rotation is the wrong way around and the
images are upside down.
|
|
7935cfac
|
2022-02-08T18:55:10
|
|
SDL_mfijoystick.m: use __typeof instead of typeof.
Fixes https://github.com/libsdl-org/SDL/issues/5319
|
|
9b817248
|
2022-02-08T18:50:02
|
|
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
|
|
e7e44df0
|
2022-02-08T11:34:41
|
|
Dynapi: add SDL_GetTouchName() entry
|
|
34d4f5b1
|
2022-02-08T11:32:20
|
|
Fixed bug #2032: add SDL_GetTouchName to expose the driver name of the device (Thanks @mgerhardy!)
|
|
53091e36
|
2022-02-02T12:30:34
|
|
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.
|
|
66866249
|
2022-02-02T11:09:02
|
|
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.
|
|
b0dd4c7d
|
2022-01-10T09:22:07
|
|
SDL_Render OpenGL: do batching like in the GLES2 backend (with no VBO)
|
|
90f0d2ce
|
2022-01-10T09:17:50
|
|
Revert OpenGL point drawing performance, do to proper batching
|
|
423feac6
|
2022-02-05T21:23:40
|
|
haiku: Actually remove BDirectWindow and fix OpenGL handling.
This provides the other half of 05c72b113c830392f8b08532317ef07972b29a2e.
|
|
6d5592a2
|
2022-02-05T12:02:54
|
|
minor cleanup of SDL_CreateRenderer
|
|
e8c48981
|
2022-02-05T08:56:56
|
|
pthread/SDL_systhread.c: always include errno.h
fixes build for several targets after commit 87b02d3 for bug #5283.
|
|
5c4fff7f
|
2022-02-04T14:02:44
|
|
Don't fail to get battery status if the upower refresh call fails
|
|
c8cee0b8
|
2022-02-04T23:28:56
|
|
OS2_HasClipboardText: store the boolean result before closing clipboard.
just in case..
|
|
c93e5520
|
2022-02-04T20:03:50
|
|
minor update to winrt/SDL_sysurl.cpp
from: https://github.com/microsoft/vcpkg/blob/master/ports/sdl2/0006-Update-SDL_sysurl.cpp.patch
|
|
3b9e6c1c
|
2022-02-04T19:50:20
|
|
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.
|
|
86b7a064
|
2022-02-04T16:40:05
|
|
Add additional VID/PIDs for Anne Pro II
This thing changes its VID/PID on firmware revisions...
|
|
dd69c28d
|
2022-02-03T18:01:34
|
|
Added a mapping for the Xbox Series X controller, firmware version 5.11.3118.0, connected to Linux via Bluetooth
|
|
b59e75c2
|
2022-02-02T19:21:34
|
|
Handle menu button press from controller
|
|
2cfc83ea
|
2022-01-22T17:10:37
|
|
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
|
|
3bef4a5d
|
2022-01-22T15:43:09
|
|
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
|
|
b5c50526
|
2022-01-22T15:34:22
|
|
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
|
|
19df4af2
|
2022-01-22T10:33:38
|
|
simplify SDL_DUMMY/OFFSCREEN_CreateWindowFramebuffer
|
|
ecd922b5
|
2022-02-01T22:33:13
|
|
Fix touch holding detection after #5244 changes
|
|
df0d696a
|
2022-02-02T15:22:14
|
|
RISCOS: attempt to fix compilation ERANGE
|
|
87b02d37
|
2022-02-02T15:09:29
|
|
Linux thread name limitation: test for ERANGE (see bug #5283)
|
|
220a9596
|
2022-02-02T10:01:11
|
|
Remove testing instruction (see bug #5283)
|
|
9e46a512
|
2022-02-02T09:58:15
|
|
Fixed bug #5283 - limit thread name to 16 characters when using pthread_setname_np()
|
|
b11dfd76
|
2022-02-01T14:43:26
|
|
Only generate key repetition for keys that should repeat on wayland.
This fix repetition on modifier keys, e.g. Control.
|
|
a90a2e75
|
2022-01-30T16:44:44
|
|
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.
|
|
03c4405b
|
2022-02-01T09:32:38
|
|
Fixed D-Bus battery refresh call
|
|
d224a63b
|
2022-02-01T11:33:35
|
|
Fix compilation for non Android
|
|
fe2ed6cf
|
2022-02-01T11:30:43
|
|
Fixed bug #5221 - Add SDL_AndroidSendMessage()
|
|
97269e14
|
2022-01-18T17:51:17
|
|
adjustments to ime_candidates
- allocate ime_candidates on demand
- allow write to the whole allocated memory of ime_candidates
- ensure ime_candcount is set to zero in case the candidates can not be queried for any reason
|
|
6f404d0f
|
2022-01-18T17:49:33
|
|
cleanup IME_GetCandidateList / UILess_GetCandidateList
- move IME_ShowCandidateList, ImmGetContext and ImmReleaseContext to this function
- set ime_candpgsize to MAX_CANDLIST if dwPageSize is zero
- comment out deselection of ime_candsel in case of korean language for the moment (LANG_CHT does not work anyway)
|
|
ec8e3104
|
2022-01-31T17:01:08
|
|
Refresh the battery state before we query it on Linux
|
|
0b34f180
|
2022-01-30T12:00:55
|
|
audio: pipewire: Don't double free properties on init failure
The context and stream creation functions will destroy the passed properties object on failure, so no need to do it manually.
The pw_properties_free() function pointer is no longer needed, so it can be removed.
|
|
f7d3abdd
|
2022-01-29T10:19:08
|
|
Fixed bug #964 - SDL_RenderCopy stretch loses proportion on viewport.
Handle the case when there is blending
|
|
a5c610b0
|
2022-01-08T12:28:02
|
|
revert 'Changed to use 0xFE instead of 0xFF for better sound quality.'
|
|
43f0271b
|
2022-01-24T08:56:33
|
|
Revert "fix compiler warnings in SDL_windows_gaming_input.c"
This reverts commit ca36cdb185f2f26241598068927821896f36b904.
The older Windows SDK's headers are wrong, and this change would crash if
you hotplug a device.
|
|
a70bb259
|
2022-01-20T13:16:03
|
|
drop handle parameter of OpenDevice
|
|
47ddb04e
|
2022-01-20T12:31:02
|
|
cleanup/sync the main loop of *_OpenDevice functions to pick audio format II.
|
|
2eafe434
|
2022-01-20T12:18:59
|
|
cleanup/sync the main loop of *_OpenDevice functions to pick audio format
|
|
3939ef72
|
2022-01-19T17:23:53
|
|
cleanup SDL_GetAudioDeviceSpec
- drop unnecessary hascapture check
- call SDL_InvalidParamError and return -1 in case the index is out of range
- do not zfill SDL_AudioSpec
- adjust documentation to reflect the behavior
|
|
113109f8
|
2022-01-19T17:18:47
|
|
cleanup SDL_GetAudioDeviceName
- drop unnecessary hascapture check
- call SDL_InvalidParamError in case the index is out of range
|
|
f91211eb
|
2022-01-19T14:51:42
|
|
cleanup WASAPI_PrepDevice
- reorganize the loop which checks for the right wave-format
- use the return value of UpdateAudioStream
- ensure SetError is called in SDL_NewAudioStream
|
|
c9e8d157
|
2022-01-19T12:59:35
|
|
re-use return value of SDL_SetError/WIN_SetErrorFromHRESULT/SDL_OutOfMemory II.
|
|
1043dd8c
|
2022-01-19T12:58:04
|
|
adjust handling of iscapture
- drop iscapture parameter of OpenDevice
- use SDL_bool for iscapture
|
|
e2f70a2d
|
2022-01-19T12:51:26
|
|
cleanup SDL_EventState
|
|
32c7d5d3
|
2022-01-18T17:44:51
|
|
cleanup IME_UpdateInputLocale
- do not store the HKL in a static variable
- always set the ime_candvertical value in case the HKL is changed
|
|
25aa7244
|
2022-01-18T17:43:31
|
|
cleanup IME_GetId
- use assert instead of a check (it is a static function with constant parameter)
- assume it is called with 0 first (simplifies the logic)
- reuse dwLang value instead of a new 'call' to LANG()
|
|
60deadba
|
2022-01-17T17:22:30
|
|
re-use return value of SDL_SetError/WIN_SetErrorFromHRESULT/SDL_OutOfMemory
|
|
ebdd5366
|
2022-01-17T16:26:02
|
|
use SDL_InvalidParamError or SDL_assert instead of custom SDL_SetError
|
|
4a17612b
|
2022-01-17T12:04:32
|
|
get rid of BeginLoopIteration
|
|
0770c582
|
2022-01-17T11:48:26
|
|
get rid of PrepareToClose
|
|
e0236c02
|
2022-01-23T01:28:36
|
|
audio: Removed an unnecessary commented-out line.
|
|
0dda8a7f
|
2022-01-17T11:21:01
|
|
cleanup init functions of audio
- use SDL_bool if possible
- assume NULL/SDL_FALSE filled impl
- skip zfill of current_audio at the beginning of SDL_AudioInit (done before the init() calls)
|
|
6fcfcc3d
|
2022-01-17T11:00:03
|
|
get rid of SkipMixerLock
|
|
3c85cef4
|
2022-01-17T09:58:16
|
|
cleanup SDL_RegisterApp
- fix memory leak when RegisterClassEx fails
- set style according to the documentation
- eliminate duplicated SDL_Instance setter
|
|
014e2bbd
|
2022-01-12T16:40:52
|
|
use SDL_COMPILE_TIME_ASSERT instead of SDL_STATIC_ASSERT
|
|
95f30c7a
|
2022-01-12T10:12:54
|
|
fix compiler warnings in video/uikit
|
|
176941a4
|
2022-01-12T10:02:52
|
|
allow MacOS build without SDL_FILE
|
|
eb80f2c6
|
2022-01-11T10:45:41
|
|
sync handling of subsystems II.
|
|
942b01a5
|
2022-01-09T15:08:21
|
|
do not use RWOps in WIN_SetWindowIcon
|
|
bf66720a
|
2022-01-08T12:22:28
|
|
fix mixing of U16 audio
|
|
905e2e22
|
2022-01-08T12:15:53
|
|
cleanup of SDL_MixAudioFormat
|
|
d7110b44
|
2022-01-08T12:07:16
|
|
fix compiler warnings in SDL_windows_gaming_input.c
|
|
e11ba0f5
|
2022-01-08T12:03:57
|
|
do not load/unload opengl library when SDL_WINDOW_METAL flag is changed
|
|
f5911bdc
|
2022-01-28T15:31:56
|
|
GLES2: disable texcoord when not using it (see bug #5235)
similar to opengl backend code:
- glDisableVertexAttribArray doesn't need to depend on 'drawstate.texture' value
- move binding code to SetCopyState()
|
|
096fe37b
|
2022-01-28T14:19:10
|
|
GLES2: revert https://github.com/libsdl-org/SDL/commit/7bf8c5a388bc41dde830e4baabcb53d507e64448
|
|
a988ce55
|
2022-01-28T17:24:59
|
|
Fixed bug #964 - SDL_RenderCopy stretch loses proportion on viewport boundaries
|
|
7bf8c5a3
|
2022-01-27T14:19:52
|
|
GLES2: disable texcoord when not using it (see bug #5235)
|
|
5b744592
|
2022-01-28T06:11:28
|
|
Update SDL_joystick.c
Add Logitech Momo Racing Wheel VID & PID to SDL_IsJoystickProductWheel function
|
|
19ae71b2
|
2022-01-27T11:48:32
|
|
video: Don't add SDL_WINDOW_(METAL|OPENGL) to new windows if unsupported.
Fixes #4656.
(Better than the previous fix in 3044310518dbb2d4814b32c6521f332b8d69aae5.)
|
|
d7e0c54d
|
2022-01-27T10:29:45
|
|
PSVita: send initial SDL_JOYDEVICEADDED events
|
|
cc40f732
|
2022-01-26T21:09:39
|
|
wayland: Round the refresh rate rather than truncating it
A 59999 mHz monitor should be reported as 60 Hz, not 59 Hz.
|
|
30443105
|
2022-01-26T21:10:15
|
|
video: Don't add SDL_WINDOW_METAL to new windows if not using Cocoa or UIKit.
Fixes #4656.
|
|
77a9ca6b
|
2022-01-26T18:26:07
|
|
wayland: Fix SDL_SetWindowSize() being dropped right after exiting fullscreen
If we get a SDL_SetWindowSize() call right after SDL_SetWindowFullscreen() but
before we've gotten a new configure event from the compositor, the attempt to
set our window size will silently fail (when libdecor is enabled).
Fix this by remembering that we need to commit a new size, so we can do that
in decoration_frame_configure().
|
|
c6ec5a07
|
2022-01-02T15:43:35
|
|
d3d11: Respect SDL_HINT_RENDER_DIRECT3D_THREADSAFE when creating device
|
|
f37e4a94
|
2022-01-26T17:02:49
|
|
video: Don't check if we can use a "texture framebuffer" until needed.
This prevents SDL from making an OpenGL context and maybe throwing it away
immediately by default. It will now only do it when trying to request a
window framebuffer directly, or creating an SDL_Renderer with the "software"
backend, which makes that request itself.
The way SDL decides if it should use a "texture framebuffer" needs dramatic
updating, but this solves the immediate problem.
Reference Issue #4624.
|
|
8ceba27d
|
2021-04-17T12:07:38
|
|
video: Prefer Wayland over X11
|
|
68a71f91
|
2022-01-25T11:18:04
|
|
wayland: Try to avoid committing before the window is shown
|
|
84320266
|
2022-01-25T12:37:43
|
|
Fixed the queue filling up with sentinel events when the WaitEvent call is passed NULL for the event
The use case is an application that waits for events on the main thread and dispatches them on a separate thread.
|
|
f0e768da
|
2022-01-25T13:07:00
|
|
wayland: Call SetFullscreen directly in ShowWindow.
This cuts out an extra flush when getting the first configure event.
|
|
8c660ccb
|
2022-01-25T17:14:01
|
|
Fixed bug #5256: X11 Segmentation fault with multiple windows and renderers
First window is created and it triggers and 'EnterNotify' event
which calls SDL_SetMouseFocus() and X11_ShowCursor() while the second
windows hasn't finished to be created (eg window->driverdata isn't set)
Just check for a valid 'driverdata'
|
|
e2d74bcb
|
2022-01-25T11:16:09
|
|
wayland: Detach hidden surfaces in HideWindow, not ShowWindow
|
|
57bc9040
|
2022-01-07T08:54:08
|
|
Add hint to optionally forcibly raise the window under MS Windows.
|
|
d7873e65
|
2022-01-04T15:47:29
|
|
Disable tablet flicks under MS Windows.
|
|
15ebad6e
|
2022-01-22T13:31:11
|
|
emscripten: Implement SDL_OpenURL
|
|
99af3281
|
2022-01-22T12:27:43
|
|
timer: Fix Emscripten declaration-after-statement error
|
|
53df0e66
|
2022-01-21T17:15:18
|
|
Fix the erroneous generation of mouse-down events from touch-move events.
The issue is that MS Windows synthesizes a mouse-move event in response
to touch-move events, and those mouse-move events are NOT labeled as
coming from a touch (e.g. GetMouseMessageSource() will not return
SDL_MOUSE_EVENT_SOURCE_TOUCH for those synthesized mouse-move events).
In addition, there seems to be no way to prevent this from happening;
https://gist.github.com/vbfox/1339671 claims to demonstrate a technique
to prevent it, but in my experience, it doesn't work.
Because of this, the "fallthrough" case can't test that the synthesized
mouse-move came from a touch-move, and starts erroneously pressing down
the mouse-button, leading to massive confusion in the client
application.
|
|
8f8b14cb
|
2022-01-21T17:10:09
|
|
Synthesize a missing touch-up event.
If a touch-down event is received for an existing touch-ID, that
probably means the operating system lost it, and that the missing
touch-up should be synthesized, to keep the client state coherent.
|
|
d2456b6e
|
2022-01-21T11:50:40
|
|
os2, geniconv: default functions pointers to Uni*() API,
In case they get accessed before SDL_Init() was called.
|
|
67cb548b
|
2022-01-20T19:31:54
|
|
Fixed build error with C90 compilers
|
|
a23b3c76
|
2022-01-20T17:21:28
|
|
Add support for correlating trigger input
|
|
e1b4761c
|
2022-01-20T14:10:56
|
|
wayland: Avoid calling SetFullscreen in libdecor ShowWindow.
This caused some weird stuff to happen in the libdecor path, probably because
the window hasn't actually been mapped yet. It ends up calling stuff that
should not yet apply, and so fullscreen in particular would have a really
messed up titlebar.
The good news is, libdecor is good about tracking fullscreen state, so we can
let the callback do this for us. Keep this for xdg_shell because we actually
map the window ourselves, so we know this call is valid for that path.
|