Frank Praznik
b520cde18f
cocoa: Properly set the pending fullscreen spaces state when in a transition
2025-03-24 23:23:32 -04:00
Carl Åstholm
dd9b9d4513
Check if GL_OES_EGL_image_external is supported before trying to use it
2025-03-24 19:52:13 -07:00
Ryan C. Gordon
ae17b04c0d
alsa: Don't start the hardware until the device thread is ready to do work.
...
Otherwise, in the time it takes the thread to start and other init tasks to
complete, we tend to get an underrun on some systems, which ALSA logs to
stderr.
So this is moved to an InitThread implementation, which runs from the device
thread, right before it begins its main loop.
Reference PR #12632 .
2025-03-24 19:41:26 -04:00
Ryan C. Gordon
41636959d2
audio: Feed output devices immediately, instead of waiting upfront.
...
This prevents the waste of an initial buffer of audio on many backends, and is
hopefully harmless on all of them.
Reference PR #12632 .
2025-03-24 19:41:26 -04:00
Ryan C. Gordon
48d4104ecb
pulseaudio: Fixed typo in commented-out debug logging.
2025-03-24 19:41:26 -04:00
Frank Praznik
8cb303126f
wayland: Fix global mouse position retrieval
2025-03-24 19:06:05 -04:00
Anonymous Maarten
7f927de1fc
x11: remove 'args' and 'ret' from SDL_X11_SYM macro
...
X11 vararg functions don't extra handling anymore.
2025-03-24 14:32:28 -04:00
Sam Lantinga
b6ca03611f
Fixed mixed trigger and body rumble for Xbox controllers on Windows
...
Fixes https://github.com/libsdl-org/SDL/issues/12095
2025-03-24 11:06:37 -07:00
Cameron Gutman
c3a3a11db4
keyboard: Don't check text input on a null window
2025-03-23 23:51:46 -05:00
Petar Popovic
035d9179a5
WIN_SetWindowProgressState(): Unsupported parameter error message
2025-03-23 10:32:19 -07:00
Petar Popovic
c217663fba
SDL_SetWindowProgressState(): Add parameter validation check for state
2025-03-23 10:00:27 -07:00
Sylvain
3fa1bd81fe
Fixed previous commit renaming {add,remove}AudioDevice to native{Add,Remove}AudioDevice
2025-03-23 17:15:40 +01:00
Petar Popovic
721476033c
SDL_SetWindowProgressValue(): Move value clamp from WIN_SetWindowProgressValue() to SDL_SetWindowProgressValue()
2025-03-23 08:56:18 -07:00
Sam Lantinga
69ad66b017
Fixed error messages in GetTaskbarList()
2025-03-23 07:58:03 -07:00
Petar Popovic
a3be7a137a
WIN_SetWindowProgressValue(): Fix value clamp
2025-03-23 07:51:49 -07:00
Frank Praznik
027df89ed3
wayland: Scale accelerated relative pointer coordinates with emulated resolutions
...
The accelerated relative coordinates are always relative to the desktop resolution, and need to be scaled with emulated fullscreen resolutions for mouse movement to remain stable. Otherwise, pointer speeds will be too fast on emulated resolutions below the desktop resolution, and too slow on those above.
2025-03-22 14:35:39 -04:00
expikr
f52f982b1e
chore: rename integer mode field names
2025-03-22 09:32:49 -07:00
Rémy Tassoux
7a10fcdccc
Add progress bar support for Windows ( #12530 )
2025-03-22 08:04:10 -07:00
Sam Lantinga
6b13d69105
Improve move/resize visual smoothness on Windows
...
Fixes https://github.com/libsdl-org/SDL/issues/12528
2025-03-21 16:46:25 -07:00
Marcin Serwin
4fcef9074b
audio: hold floating point exceptions when using neon
2025-03-21 15:08:31 -07:00
Frank Praznik
b493e29a81
x11: Fix backwards _NET_WM_SYNC_REQUEST init check
2025-03-21 15:32:54 -04:00
Sam Lantinga
2fbb583290
SDL_ClaimWindowForGPUDevice() should fail for transparent windows
...
The GPU API doesn't currently support transparent windows (transparent swapchain effects doesn't seem possible on D3D12) so we should explicitly fail so users don't expect transparency and then not get it.
Fixes https://github.com/libsdl-org/SDL/issues/12410
2025-03-21 12:14:20 -07:00
Frank Praznik
bde49abdb7
GPU: Support swapchain buffer transparency in Vulkan
...
If the window is flagged with SDL_WINDOW_TRANSPARENT, create the associated swapchain with a composite alpha value that supports blending, if available.
Fixes transparent windows on the Vulkan backend, and prevents possible validation errors by ensuring that the composite alpha value is always a valid bit in VkSurfaceCapabilitiesKHR::supportedCompositeAlpha.
2025-03-21 11:53:32 -07:00
Frank Praznik
79081a178f
cocoa: Fix zoom check when leaving fullscreen
...
Non-resizable windows will always report as zoomed, so isZoomed is not a reliable check here.
2025-03-21 14:43:17 -04:00
Frank Praznik
03cdd297e0
video: Fix boolean logic for getting the pending window position
2025-03-21 13:47:38 -04:00
Sam Lantinga
fbdb637978
Fixed build when virtual joysticks are disabled
2025-03-21 07:34:57 -07:00
Sam Lantinga
758eb256b9
Fixed DebugLogRenderCommands() output
2025-03-20 21:24:39 -07:00
Sam Lantinga
4ceb02434b
We need to rebind D3D12 resources after updating them
...
Fixes https://github.com/libsdl-org/SDL/issues/12544
2025-03-20 20:22:00 -07:00
Sam Lantinga
3538abfb82
Revert "Don't update a texture twice in the same batch on D3D12"
...
This reverts commit 0681d08817 .
There's a simpler fix for this.
2025-03-20 19:56:59 -07:00
Sam Lantinga
0681d08817
Don't update a texture twice in the same batch on D3D12
...
Fixes https://github.com/libsdl-org/SDL/issues/12544
2025-03-20 19:51:56 -07:00
hwsmm
ac5b2b6102
Don't send text event while ctrl/alt is held on X11/Wayland
2025-03-20 22:30:10 -04:00
Temdog007
581b614291
Emscripten: Support Custom Message Boxes ( #12583 )
...
* Allow custom message boxes with colors and multiple buttons to work if Asyncify is enabled
* Keep old functionality of using alert when Asyncify is not available
* Update testmessage to allow for setting random colors as the color scheme of the message box
2025-03-20 16:33:06 -07:00
Carl Åstholm
54f5b73333
emscripten: Don't use legacy JS library functions for assertions
2025-03-20 16:24:16 -07:00
Sam Lantinga
03a53ce0d1
Always show the on-screen keyboard on Steam Deck
...
Steam will eventually have smarts about whether a keyboard is active and will igore the request appropriately.
Fixes https://github.com/libsdl-org/SDL/issues/12595
2025-03-20 16:19:50 -07:00
Sam Lantinga
8caeaaacdd
A Steam Controller might be generating keyboard input
...
We can't use keyboard input as a signal about whether a keyboard is attached. There might be keyboard input from any number of generated inputs or non-keyboard devices.
2025-03-20 16:19:50 -07:00
Sam Lantinga
cbb83be895
Show the on-screen keyboard if we don't have active keyboard input
...
Active keyboard input is based on the input the user has most recently sent.
Fixes https://github.com/libsdl-org/SDL/issues/12595
2025-03-20 16:19:50 -07:00
Ryan C. Gordon
10072bb07d
asyncio: SDL_LoadFileAsync was not null-terminating the file data.
2025-03-20 15:50:06 -04:00
Sam Lantinga
10fae8c34b
Fixed Android build warnings
2025-03-20 11:02:33 -07:00
Sam Lantinga
476e7e54cb
Don't create surfaces with invalid pixel formats
...
Fixes https://github.com/libsdl-org/SDL/issues/12556
2025-03-20 09:42:52 -07:00
Eri the Switch
6f456da63f
GPU: Request sampleRateShading feature on Vulkan
2025-03-20 09:31:34 -07:00
Sam Lantinga
f2ed5c7a1b
Fix illegal calls to DwmGetWindowAttribute()
...
DWMWA_WINDOW_CORNER_PREFERENCE and DWMWA_BORDER_COLOR are only supported for DwmSetWindowAttribute(), they can't be queried.
Fixes https://github.com/libsdl-org/SDL/issues/12206
Closes https://github.com/libsdl-org/SDL/pull/12209
2025-03-19 22:00:42 -07:00
Sam Lantinga
96bf12444c
Windows allows windows to be resized to zero height.
...
Changed the window client rect validation to take this into account.
Fixes https://github.com/libsdl-org/SDL/issues/9796
2025-03-19 21:16:35 -07:00
Sam Lantinga
47b0c75470
Make sure we're getting called for the correct window
...
Fixes https://github.com/libsdl-org/SDL/issues/12525
2025-03-19 20:20:36 -07:00
Sam Lantinga
3415bc920a
Fixed crash if a window couldn't be created on Windows
...
Fixes https://github.com/libsdl-org/SDL/issues/11482
2025-03-19 20:10:24 -07:00
Evan Hemsley
c696e93180
GPU Vulkan: Fix render pass race ( #12587 )
2025-03-19 13:32:14 -07:00
Frank Praznik
7b93a744c8
time: Fix compilation on Solaris
...
The tm_gmtoff field of the broken-down time 'tm' struct wasn't formally standardized until POSIX.1-2024, but practically it has been available on desktop *nix platforms such as Linux/glibc, FreeBSD, OpenBSD, NetBSD, OSX/macOS (NextStep before that), and others since the 1990s. The notable exception is SunOS/Solaris, where the timezone offset must still be retrieved in the strictly POSIX.1-2008 compliant way.
2025-03-19 12:19:42 -04:00
Carl Åstholm
14deef997c
emscripten: Fix undefined behavior in opengles2 renderer
2025-03-18 19:18:24 -07:00
Ethan Lee
5283f73748
storage: Declare a private bootstrap for NDA user storage
2025-03-18 22:12:21 -04:00
Sam Lantinga
8b924df48b
Use an autoreleasepool in Cocoa_GetDisplayUsableBounds()
...
Fixes https://github.com/libsdl-org/SDL/issues/12571
2025-03-18 14:36:48 -07:00
Sam Lantinga
82335fd0e9
Fixed building with SDL_LEAN_AND_MEAN
...
Fixes https://github.com/libsdl-org/SDL/issues/12578
2025-03-18 09:55:23 -07:00