SDL Wiki Bot
6f45f97af0
Sync SDL3 wiki -> header
...
[ci skip]
2026-02-10 15:51:32 +00:00
Ryan C. Gordon
c223c5494d
wasapi: stop infinite loop in audio thread when recording device is unplugged.
...
(cherry picked from commit a806a9092b )
2026-02-10 09:25:40 -05:00
Ryan C. Gordon
267e681a0b
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 .
2026-02-09 21:39:02 -05:00
Sam Lantinga
9f8c70713a
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.
2026-02-09 13:28:45 -08:00
Ryan C. Gordon
8da6604854
video: GL_FRAMEBUFFER_SRGB is not core in any version of OpenGL ES.
...
Reference Issue #14898 .
2026-02-09 15:47:43 -05:00
RaceTheMaSe
6f754e5c03
Fix warnings: extra semi - spurious ( #15014 )
2026-02-09 11:48:58 -08:00
RaceTheMaSe
f1a7a64eb4
Fix warnings: Extra semi - macro usage ( #15015 )
2026-02-08 16:58:53 -08:00
Sam Lantinga
6feb0e1333
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
2026-02-08 11:51:34 -08:00
Cameron Gutman
1d83a35e48
cocoa: Fix 1px border in fullscreen on Tahoe
2026-02-08 11:01:23 -08:00
Sam Lantinga
4de62c35c0
Fixed checking against cached shader params (thanks @ccawley2011!)
2026-02-08 10:59:18 -08:00
Max Seidenstücker
0c121ad6a7
conditional expression is constant
...
MSVC: C4127: conditional expression is constant
2026-02-08 09:38:35 -08:00
Max Seidenstücker
d063cb01e9
variable conditionally uninitialized
...
currentX and currentY in L2263-L2264 are marked as conditionally uninitialized by MSVC and Clang
Clang: variable may be uninitialized when used here [-Wconditional-uninitialized]
2026-02-08 09:35:07 -08:00
William Horvath
8ee7dc2f9f
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.
2026-02-08 09:31:13 -08:00
RaceTheMaSe
c15ca27740
dialog_utils: fix NameTransform() function pointer type ( #15002 )
2026-02-07 23:23:47 +03:00
Frank Praznik
f07ba5b954
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.
2026-02-07 14:27:04 -05:00
ROllerozxa
3919cc902e
Fix SDL_TriggerBreakpoint being undefined on slimcc
2026-02-07 21:11:54 +03:00
RaceTheMaSe
ba3274e3a1
hidapi, windows: Fix -Wjump-misses-init warning ( #14990 )
...
Clang: jump from this goto statement to its label is incompatible with C++ [-Wjump-misses-init]
2026-02-07 21:10:50 +03:00
RaceTheMaSe
7c7ffb9115
tests: Fix unreachable code warnings ( #14993 )
2026-02-07 20:42:59 +03:00
RaceTheMaSe
863912aa03
PS2, VITA: Fix void pointer arithmetic warnings ( #14995 )
2026-02-07 20:39:33 +03:00
RaceTheMaSe
4f183506f6
Fix warning: strict prototypes ( #14992 )
...
clang: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
2026-02-07 07:38:59 -08:00
Vicki Pfau
017d950b6b
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
2026-02-07 07:37:25 -08:00
Max Seidenstücker
8f8880a8eb
Merge all occurances of __func__ and __FUNCTION__ to SDL_FUNCTION
2026-02-07 07:34:11 -08:00
Max Seidenstücker
d870911202
CodeSpell
2026-02-07 18:14:00 +03:00
Max Seidenstücker
8b53b77058
annotate no return
...
Clang: function could be declared with attribute 'noreturn' [-Wmissing-noreturn]
2026-02-07 18:10:02 +03:00
Max Seidenstücker
144ab4ba99
Void function return
...
Clang: void function should not return void expression [-Wpedantic]
2026-02-07 18:06:10 +03:00
Max Seidenstücker
0c7d4d5a89
Static at beginning
...
GCC: 'static' is not at beginning of declaration [-Wold-style-declaration]
2026-02-07 18:05:39 +03:00
RaceTheMaSe
9fda8f2669
Fix -Wnewline-eof warnings ( #14989 )
2026-02-07 18:04:18 +03:00
Max Seidenstücker
bf58ff81d8
comma at end of enum
...
GCC: comma at end of enumerator list [-Wpedantic]
2026-02-07 15:54:13 +01:00
Ryan C. Gordon
3dc48a4890
video: Wrap OpenGL work in ifdefs.
...
Apparently the rest of SDL_GL_CreateContext compiles on platforms without
OpenGL, though! :)
2026-02-06 14:00:19 -05:00
SDL Wiki Bot
df9f56f958
Sync SDL3 wiki -> header
...
[ci skip]
2026-02-06 18:59:48 +00:00
Sam Lantinga
88d5a5a2b9
Clarify that SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS can be set anytime
...
Fixes https://github.com/libsdl-org/sdlwiki/issues/914
2026-02-06 10:58:58 -08:00
Ryan C. Gordon
9f5747ccd4
video: Respect SDL_HINT_OPENGL_FORCE_SRGB_CAPABLE with GL_FRAMEBUFFER_SRGB.
...
Reference Issue #14898 .
2026-02-06 13:54:32 -05:00
Ryan C. Gordon
01689bca0e
video: Maybe fix build.
2026-02-06 13:50:27 -05:00
Ryan C. Gordon
083c6b8872
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 .
2026-02-06 13:44:21 -05:00
Ryan C. Gordon
60690ff829
render: OpenGL and GLES2 should explicitly request a not-sRGB-capable context.
...
Reference Issue #14898 .
2026-02-06 13:44:20 -05:00
Sam Lantinga
c9116daa71
Fixed build
2026-02-06 10:32:19 -08:00
Sam Lantinga
8e783e0892
Fixed building with Visual Studio 2019
2026-02-06 10:15:39 -08:00
Sam Lantinga
56b77177a9
Fixed building with -DSDL_HIDAPI=OFF
...
Fixes https://github.com/libsdl-org/SDL/issues/14975
2026-02-06 09:59:37 -08:00
Sam Lantinga
fdfcfc0566
Make sure native textures have the same channel precision if possible
...
Fixes https://github.com/libsdl-org/SDL/issues/14882
2026-02-06 09:50:18 -08:00
Jari Vetoniemi
ef41e0a0f0
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) >
2026-02-06 09:16:59 -08:00
Wohlstand
a36ef1f187
SDL_render_psp.c: Also apply the similar fix to PSP
...
Since this problem is the same here
2026-02-06 09:02:41 -08:00
Wohlstand
87a81bd09d
SDL_render_vita_gxm.c: Fixed the black screen due to zero cliprect
2026-02-06 09:02:41 -08:00
Wohlstand
75d1d64c75
Revert "Reverted Vita cliprect changes"
...
This reverts commit aeb4b3d2fc .
2026-02-06 09:02:41 -08:00
Cameron Cawley
7b8ce0df4b
Add QNX to the supported platforms list
2026-02-05 16:50:24 -08:00
Ryan C. Gordon
50f3adec77
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 .
2026-02-05 18:39:48 -05:00
Vicki Pfau
e1b8ad0380
Add and use libusb_set_auto_detach_kernel_driver for the Switch 2 driver
2026-02-05 14:58:15 -08:00
Sam Lantinga
b9743eabdd
Removed spurious "extern"
2026-02-05 14:07:01 -08:00
SDL Wiki Bot
ae4fb50316
Sync SDL3 wiki -> header
...
[ci skip]
2026-02-05 20:15:42 +00:00
Ryan C. Gordon
632c83b722
opengl: added SDL_HINT_OPENGL_FORCE_SRGB_CAPABLE.
...
Reference Issue #14898 .
2026-02-05 15:14:18 -05:00
Sam Lantinga
0cadc15ef6
Don't treat "hid-over-i2c 0107 System Control" as a joystick
2026-02-05 11:27:05 -08:00