Commit Graph
22374 Commits
Author SHA1 Message Date
Frank Praznik 63bf4c1c79 x11: Register the input context destroyed callback
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
Register the destroyed callback to handle cases where the IC is suddenly no longer valid (e.g. if ibus or fcitx dies).
2026-07-28 15:46:54 -04:00
Sam Lantinga 1457503bd2 Check for the sRGB color primaries rather than the transfer function 2026-07-28 12:29:42 -07:00
Rachel BlackmanandGitHub 412a7c5db6 Use the modern OnBackInvokedCallback method to trap the back button on newer Android devices (#16052)
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
2026-07-27 15:43:23 -07:00
Sam Lantinga f4337eded2 Use the render passes we just created when creating a Vulkan render target
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
2026-07-27 10:56:49 -07:00
Sam Lantinga db84871fdf Allow writing to planar YUV textures from application code in the Vulkan renderer 2026-07-27 10:56:49 -07:00
Anonymous MaartenandAnonymous Maarten 32ce1aef85 ci: Add Windows 11 ARM64 job
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
[sdl-ci-filter msvc*]
2026-07-26 17:54:20 +02:00
Anonymous MaartenandAnonymous Maarten 81acd92d07 ci: Build Android.mk in parallel 2026-07-26 17:54:20 +02:00
svncibrahimandFrank Praznik eba97448ae wayland: Fix maximized check when setting the window size
The logical || made the flag mask evaluate to 1, so only fullscreen was checked and maximized windows were treated as resizable.
2026-07-26 09:50:48 -04:00
Lucas AlvesandSam Lantinga 3304ec648b Add "_FIRST/_LAST" fields to events subsections.
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
2026-07-25 12:01:55 -07:00
Sam Lantinga 855cbec702 Set VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT for planar formats
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
This allows creating separate image views for the planes of the image if desired.
2026-07-24 16:22:28 -07:00
NintorchandSam Lantinga 223490b024 Fix GameInput QueryDeviceName memory leaks 2026-07-24 13:12:13 -07:00
Tim StahlhutandRyan C. Gordon 40fb1b6ccc Cygwin: Fix SDL_GetPlatform
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
[sdl-ci-filter cygwin]
2026-07-23 18:29:25 -07:00
Sam Lantinga 0f5f708c5a Better check to see whether HDR10 input will have scaling applied
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
2026-07-23 12:55:14 -07:00
Sam Lantinga 303113b853 Sorted controller mappings
Also fixed line endings for Retro Fighters D6 mappings
2026-07-23 11:38:24 -07:00
AlynneandGitHub 091261b3bd Add Retro Fighters D6 mappings (#16048) 2026-07-23 11:35:15 -07:00
Sam Lantinga 982787979f testcolorspace: added an additional PQ blend color case 2026-07-23 10:50:23 -07:00
Sam Lantinga 413ac5084d testcolorspace: show the blend color when it's incorrect
Also added an additional PQ blend color case
2026-07-23 10:40:20 -07:00
Sam Lantinga 326694de32 Get the correct HDR values under Gamescope
This also switches log messages in SDL_x11modes.c to use SDL_Log()
2026-07-23 10:32:03 -07:00
Sam Lantinga 604fe14b87 Make sure the PQ shader will output the input value before using the simple shader
Note that we don't account for vertex color here. If HDR10 content needs to be tinted by vertex color, it can't use the simple shader. I'm assuming that the use case for this will be video content which generally won't use vertex color and this optimization is fine.
2026-07-23 10:25:25 -07:00
Sam Lantinga 148241117b Define SCRGB_NITS for use in HDR color calculations 2026-07-23 10:25:25 -07:00
AlynneandGitHub b9d64c45a9 Support for Retro Fighters Defender Pro (#16045) 2026-07-23 10:16:51 -07:00
Sam Lantinga 9f4a1215e2 testcolorspace: show a reasonable HDR gradient on Wayland
On some Wayland configurations, the SDR white level is 203 nits and the max luminance is 10000 nits, and HDR content in the PQ range is mapped by the compositor into the actual display capabilities. We don't want to show an HDR gradient up to 10000 nits, so let's cap it to ~1000 nits in this case.
2026-07-23 08:01:05 -07:00
Sam Lantinga 2a623fd224 wayland: set the SDR_white_level for HDR capable displays
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
2026-07-22 15:24:48 -07:00
Sam Lantinga 0d21a1aa7a testcolorspace: add optional cycling of colorspaces
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
2026-07-22 11:36:32 -07:00
Sam Lantinga e10457d52f testcolorspace: added an HDR10 gradient 2026-07-22 11:36:32 -07:00
Sam Lantinga 23b641070c Added HDR10 display support for the direct3d11, direct3d12, and vulkan renderers 2026-07-22 11:36:32 -07:00
Frank Praznik cc2713c047 wayland: Don't clear the clipboard when a nil selection is ignored
If the previous selection offering was recursive, a nil selection should be ignored, or clearing the clipboard may clear the backing memory of the client's selection offering as well.
2026-07-22 12:09:18 -04:00
Sam Lantinga ae2301e7a5 Added SDR white point for X11 on Steam Deck
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
Also disabled HDR on X11 for other devices for now, we don't know that they'll be able to display it properly.
2026-07-21 20:24:26 -07:00
Sam Lantinga 75e280618e edid-parse: print the HDR luminance information 2026-07-21 20:24:26 -07:00
Frank Praznik d63137082a test: Fix memory leak in testclipboard
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
2026-07-21 14:38:48 -04:00
Sam Lantinga c70f111295 Corrected the name of the Razer Raiju V3 Pro controller
Fixes https://github.com/libsdl-org/SDL/issues/16028
2026-07-21 07:47:28 -07:00
Esme PovirkandSam Lantinga 3fc8509b36 Fix build on arm64ec. 2026-07-21 07:44:17 -07:00
Frank Praznik ee1c942a92 mouse: Handle explicit warp events
The warp event in Wayland can occur without explicitly warping the mouse, such as if a window changes position under the cursor while the cursor is stationary. Introduce the internal SDL_SendMouseWarp() function to handle updating the absolute cursor position without generating relative motion for these cases.
2026-07-21 09:59:14 -04:00
Frank Praznik 73010447c3 wayland: Add support for the pointer warp event 2026-07-21 09:59:14 -04:00
Sam Lantinga d98661ff7f Decode the monitor EDID to get HDR metadata on X11
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
2026-07-20 12:25:17 -07:00
NintorchandSam Lantinga f675aeddeb Use HIDAPI to provide better names for GameInput controllers 2026-07-20 12:18:57 -07:00
Hadrian TangandRyan C. Gordon a8591d943b Fix #15985
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
2026-07-19 20:06:04 -07:00
Ryan C. Gordon 5ff9c119fc audio: Fixed linked list when logical devs move to a new default physical dev. 2026-07-19 21:49:31 -04:00
SDL Wiki Bot 377150b59e Sync SDL3 wiki -> header
[ci skip]
2026-07-19 16:47:13 +00:00
Hadrian TangandGitHub 8319d69f72 Clear SDL_PROP_WINDOW_ANDROID_WINDOW_POINTER when ANativeWindow is freed (#16024)
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
2026-07-18 14:59:22 -07:00
Frank Praznik f52f31ef5a notification: Fix Win32 delegate structs
Cast from the generic implementation, which has space for the refcount.
2026-07-18 17:46:02 -04:00
Frank Praznik a0bffd4a92 notification: Use interface availability to check for Windows version suitability
Explicit version checks require application manifests on Win10, or an older version will be reported. Check for the toast notification history interface, which is only available on Win10+, and use that to determine if the Windows version is high enough to support notifications.
2026-07-18 17:46:02 -04:00
Sam Lantinga 08b9c55393 Fixed error: cast from pointer to integer of different size
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
2026-07-17 22:08:39 -07:00
Sam Lantinga f00052ffe2 testffmpeg: fixed memory leak using DRM frames with the Vulkan renderer
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
2026-07-17 19:24:46 -07:00
Anonymous MaartenandAnonymous Maarten 5133849627 IsEqualGUID uses memcmp behind the scenes, thwarting a NOLIBC build 2026-07-18 02:40:33 +02:00
Sam Lantinga 762f4abbd0 Fixed an error with goto crossing variable initialization 2026-07-17 16:56:23 -07:00
Sam Lantinga 332e7a050e testffmpeg: added support for VA-API and DRM frames when using Vulkan rendering 2026-07-17 16:23:48 -07:00
meta-legendandGitHub ac9ef17bcc Avoid RLE for software render alpha subrect copies (#15982) 2026-07-17 15:09:42 -07:00
Ryan C. Gordon df7b937361 android: Fix pen creating phantom mouse events in relative mode.
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
This mostly just unifies code that was handling this case elsewhere already.

Fixes #15620.
2026-07-17 12:59:26 -04:00
Vlad ZahorodniiandFrank Praznik 6eba2f2efe wayland: Add support for wl_fixes.ack_global_remove
Build (All) / Create test plan (push) Canceled after 0s
Build (All) / level1 (push) Canceled after 0s
Build (All) / level2 (push) Canceled after 0s
The wl_fixes.ack_global_remove request signals the compositor that the
client will not bind the removed global. It can be used by the
compositor to decide when it is safe to actually destroy the
corresponding global. If a global is destroyed too soon, some clients may
get disconnected.

See also https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/533
2026-07-16 12:30:58 -04:00