Ryan C. Gordon
febe5dd3bc
render: opengl and opengles2 renderers try to disable GL_FRAMEBUFFER_SRGB.
...
Reference Issue #14898 .
(cherry picked from commit fc570a1a1c )
2026-02-16 13:09:18 -05:00
Ryan C. Gordon
8f9dd75ead
video: Only set GL_FRAMEBUFFER_SRGB state if the hint requests it.
...
Reference Issue #14898 .
(cherry picked from commit ead67481c0 )
2026-02-16 13:08:59 -05:00
Cameron Gutman
a849c4d361
win32: Fix composition UI being displayed when IME is disabled
...
(cherry picked from commit 8535936401 )
2026-02-16 09:00:49 -08:00
NateXS
8973dfd9cc
n3ds: Don't put audio thread in system core on Old 3DS systems
...
(cherry picked from commit 149abe8f85 )
2026-02-16 08:44:52 -08:00
Sam Lantinga
2f4919c6ff
Use 20 ms as the default audio buffer size on Android
...
It turns out that Android will not pick a low latency buffer size by default.
(cherry picked from commit c381b2bdfa )
2026-02-13 14:35:25 -08:00
DominusExult
d390a4e8f0
Fix testime to pass window coordinates to SDL_SetTextInputArea().
...
Also moved the area closer to the bottom so the panning of the screen can be observed on Android and iOS.
(cherry picked from commit e049fff360 )
2026-02-13 08:23:03 -08:00
Sam Lantinga
9f0ebbef46
Steam Controller report 0x45 is used for BLE mode
...
(cherry picked from commit 0b1c592fda )
2026-02-12 15:46:19 -08:00
Sam Lantinga
6707df6d88
Updated Steam Controller packet handling
...
(cherry picked from commit 84c21cf970 )
2026-02-12 14:34:52 -08:00
Sam Lantinga
744ea5701c
Fixed initializing the PowerA OPS v1 Wireless Controller
...
(cherry picked from commit 4e2fd57e77 )
2026-02-11 16:54:42 -08:00
Sam Lantinga
b467276f4a
Fixed initializing the PowerA Fusion Pro 4 on Steam Link hardware
...
(cherry picked from commit 2b484a1ccb )
2026-02-11 16:54:42 -08:00
Sam Lantinga
4361920501
Fixed HIDAPI hotplug detection in applications that don't initialize video
...
(cherry picked from commit eaeca340f3 )
2026-02-11 09:12:35 -08:00
Sam Lantinga
b5cad69b9c
Fixed HIDAPI hotplug detection when initializing gamepads off the main thread
...
(cherry picked from commit d3f9899df5 )
2026-02-11 09:03:43 -08:00
Ryan C. Gordon
723b77ede8
wasapi: Patched to compile.
...
(cherry picked from commit 31404a9dcb )
2026-02-10 11:35:33 -05:00
Sylvain
a7bac75470
Android: prevent SDLActivity and Main Thread to access mJoystick at the
...
same time. same for mHapticHandler
(cherry picked from commit a35bcad0be )
2026-02-10 07:54:19 -08:00
Ryan C. Gordon
a806a9092b
wasapi: stop infinite loop in audio thread when recording device is unplugged.
2026-02-10 09:24:34 -05:00
Ryan C. Gordon
55d78567b1
video: Wrap OpenGL work in ifdefs.
...
Apparently the rest of SDL_GL_CreateContext compiles on platforms without
OpenGL, though! :)
(cherry picked from commit 3dc48a4890 )
2026-02-09 21:45:42 -05:00
Ryan C. Gordon
88bbc94921
video: Respect SDL_HINT_OPENGL_FORCE_SRGB_CAPABLE with GL_FRAMEBUFFER_SRGB.
...
Reference Issue #14898 .
(cherry picked from commit 9f5747ccd4 )
2026-02-09 21:45:22 -05:00
Ryan C. Gordon
027183f89c
video: Maybe fix build.
...
(cherry picked from commit 01689bca0e )
2026-02-09 21:45:10 -05:00
Ryan C. Gordon
0810c5ac0d
video: Force GL_FRAMEBUFFER_SRGB state at OpenGL context creation time.
...
The default varies between OpenGL and OpenGL ES, so try to force it to what
the app actually requested with SDL_GL_FRAMEBUFFER_SRGB_CAPABLE.
Fixes #14898 .
(cherry picked from commit 083c6b8872 )
2026-02-09 21:45:00 -05:00
Ryan C. Gordon
9f45801fa7
render: OpenGL and GLES2 should explicitly request a not-sRGB-capable context.
...
Reference Issue #14898 .
(cherry picked from commit 60690ff829 )
2026-02-09 21:44:47 -05:00
Ryan C. Gordon
ae3bb879c7
emscripten: drag-and-drop fixes.
...
FS.mkdir() will throw a javascript exception if the scratch directory already
exists, so catch/ignore that.
Wrap the rest of the scratch i/o in a try/catch block; the event will only
send if everything works out.
Wrap some calls from Javascript to the C runtime's free() in an
EMSCRIPTEN_KEEPALIVE function, so that the compiler doesn't optimize the
function out and crash at runtime.
Fixes #14999 .
(cherry picked from commit 267e681a0b )
2026-02-09 21:43:12 -05:00
Sam Lantinga
17eb20505c
Fix the 8BitDo Ultimate 2D Wireless Controller showing up multiple times
...
This controller has 3 interfaces, one for the Xbox gamepad protocol, and two HID interfaces. We should only handle the Xbox interface in the Xbox driver.
(cherry picked from commit 9f8c70713a )
2026-02-09 13:29:47 -08:00
Sam Lantinga
badd9e5a15
You can't combine SDL_STRINGIFY_ARG() and SDL_FUNCTION
...
Removed obsolete documentation that shows this usage and macros that attempt it.
Also allow SDL_FUNCTION to be redefined by the application.
Fixes https://github.com/libsdl-org/SDL/issues/15004
(cherry picked from commit 6feb0e1333 )
2026-02-08 11:56:12 -08:00
Max Seidenstücker
576c2d2f2c
Merge all occurances of __func__ and __FUNCTION__ to SDL_FUNCTION
...
(cherry picked from commit 8f8880a8eb )
2026-02-08 11:56:12 -08:00
Cameron Gutman
48e5fc7b69
cocoa: Fix 1px border in fullscreen on Tahoe
...
(cherry picked from commit 1d83a35e48 )
2026-02-08 11:01:44 -08:00
Sam Lantinga
12e9ff33c3
Fixed checking against cached shader params (thanks @ccawley2011!)
...
(cherry picked from commit 4de62c35c0 )
2026-02-08 11:00:24 -08:00
William Horvath
054bea938a
dummyaudio: Remove bitrotted support for __EMSCRIPTEN_PTHREADS__ code path.
...
In SDL_audio.c:OpenPhysicalAudioDevice, an attempt is made to SDL_CreateThread
if ProvidesOwnCallbackThread is false, but SDL_CreateThreadWithPropertiesRuntime
is not implemented for Emscripten, so this always fails. I'm not sure if/when
this ever worked, but it simply cannot work in its current state.
(cherry picked from commit 8ee7dc2f9f )
2026-02-08 09:32:18 -08:00
RaceTheMaSe
b9107ec196
dialog_utils: fix NameTransform() function pointer type ( #15002 )
...
(cherry picked from commit c15ca27740 )
2026-02-08 09:32:18 -08:00
Frank Praznik
5728f9d703
wayland: Check the mod state when sending repeated key text
...
The control and alt modifiers should suppress text events when repeating to match standard press behavior.
(cherry picked from commit f07ba5b954 )
2026-02-07 14:32:12 -05:00
ROllerozxa
e61a874c66
Fix SDL_TriggerBreakpoint being undefined on slimcc
...
(cherry picked from commit 3919cc902e )
2026-02-07 10:14:28 -08:00
Vicki Pfau
2b72332b81
Fix Switch and Switch 2 player LED patterns
...
The patterns we were using don't match the official patterns, which fill up as
many lights as players instead of just using the nth player LED. Above 4,
there are some special patterns, as documented on Nintendo's Singaporean site:
https://www.nintendo.com/sg/support/qa/detail/33822
(cherry picked from commit 017d950b6b )
2026-02-07 07:37:51 -08:00
Sam Lantinga
9ee86e7e79
Fixed building with -DSDL_HIDAPI=OFF
...
Fixes https://github.com/libsdl-org/SDL/issues/14975
(cherry picked from commit 56b77177a9 )
2026-02-06 10:00:17 -08:00
Jari Vetoniemi
6168085e45
cocoawindow: fix wrong content scale with ANGLE EGL context
...
ANGLE expects that the surface layer content scale is updated
accordingly.
<b406401e42/src/libANGLE/renderer/metal/SurfaceMtl.mm (L597-L636) >
(cherry picked from commit ef41e0a0f0 )
2026-02-06 09:17:17 -08:00
Wohlstand
000d56702e
SDL_render_psp.c: Also apply the similar fix to PSP
...
Since this problem is the same here
(cherry picked from commit a36ef1f187 )
2026-02-06 09:08:58 -08:00
Wohlstand
c12d90108f
SDL_render_vita_gxm.c: Fixed the black screen due to zero cliprect
...
(cherry picked from commit 87a81bd09d )
2026-02-06 09:08:57 -08:00
Wohlstand
44c0feed99
Revert "Reverted Vita cliprect changes"
...
This reverts commit aeb4b3d2fc .
(cherry picked from commit 75d1d64c75 )
2026-02-06 09:08:57 -08:00
Ryan C. Gordon
fc5862b0dd
opengl: added SDL_HINT_OPENGL_FORCE_SRGB_CAPABLE.
...
Reference Issue #14898 .
(cherry picked from commit 632c83b722 )
2026-02-05 18:45:06 -05:00
Ryan C. Gordon
7f3d51b690
cocoa: Fix SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES=0.
...
This hint is documented to not just turn off fullscreen windows going into a
new Fullscreen Space, but also to make the green button on a resizeable
window's title bar do a maximize/zoom instead of make the window fullscreen.
Previously, this only did the former and not the latter (or perhaps it worked
and the defaults changed in a newer macOS, we aren't sure).
Fixes #7470 .
(cherry picked from commit 50f3adec77 )
2026-02-05 18:43:39 -05:00
Vicki Pfau
45086459d2
Add and use libusb_set_auto_detach_kernel_driver for the Switch 2 driver
...
(cherry picked from commit e1b8ad0380 )
2026-02-05 14:59:10 -08:00
Sam Lantinga
5964104910
Guarantee that pens are in proximity before motion and button events
...
This also delays pen proximity out events to make sure that the pen is really gone before delivering them. On Android, you get a HOVER_EXIT event when the pen contacts the surface, which we don't want to treat as the pen leaving proximity.
(cherry picked from commit bddf6d3e2a )
2026-02-05 14:09:07 -08:00
Sam Lantinga
9194d199e7
Added support for the third stylus button on Android
...
(cherry picked from commit cd7fc90c87 )
2026-02-05 14:09:07 -08:00
Ryan C. Gordon
81d9f30db4
pen: Fixed incorrect comment.
...
(cherry picked from commit dd18d7ff52 )
2026-02-05 14:09:07 -08:00
Sam Lantinga
38b9c9117d
Fixed warning: no previous prototype for function 'SDL_PrivateIsGamepadPlatformMatch'
...
(cherry picked from commit cd14bf3d00 )
2026-02-04 14:41:27 -08:00
Frank Praznik
2887de55d6
wayland: Only use owned surface data when processing touches
...
Otherwise, user data set externally may be treated as SDL window data.
(cherry picked from commit bd472b43f5 )
2026-02-04 14:29:08 -05:00
Anonymous Maarten
8107d5b042
cmake: cannot detect deprecated apple-clang link options (they are not fatal)
...
So skip these
(cherry picked from commit 5f151f4532 )
2026-02-03 20:57:32 +01:00
Nintorch
94f6f8d3c3
Add share button mapping to Xbox Series X controller on Android
...
(cherry picked from commit 997a168e00 )
2026-02-03 11:33:44 -08:00
Sam Lantinga
5935fe73d3
Fixed detecting Nintendo Switch Pro 2 controller on Steam Link hardware
...
In this case, it's available via both libusb and hidraw, but the hidraw device isn't usable. If a device needs to be opened via libusb, don't expose it via hidraw enumeration.
(cherry picked from commit f60231759d )
2026-02-03 10:44:31 -08:00
Anonymous Maarten
775eac98ee
surface: verify surface palette in SDL_Save(BMP|PNG) before hitting the FS
...
(cherry picked from commit 28ea4a8e31 )
2026-02-03 09:32:37 -08:00
Ryan C. Gordon
d9bc9dda7a
emscripten: Cleanup some wasm32/wasm64 ifdefs.
...
Fixes #14066 .
(cherry picked from commit bb6ced6fc0 )
2026-02-02 19:23:33 -05:00
Ryan C. Gordon
f9bb023eeb
emscripten: Unify creation of Module['SDL3'] in at SDL_Init time.
...
(cherry picked from commit 7d093940a7 )
2026-02-02 19:23:28 -05:00