Joshua T. Fisher
84dff407d4
Fixup the mingw readme cmakelists
...
(cherry picked from commit 7746a9656e
)
2025-03-11 19:43:43 -07:00
Sam Lantinga
21e6c5814c
Fixed Nintendo controller face button layout under Steam
...
(cherry picked from commit 2ce3dfdf1d
)
2025-03-10 17:31:12 -07:00
Sam Lantinga
776f0a685c
Fixed sscanf("026", "%1x%1x%1x", &r, &g, &b)
...
Fixes https://github.com/libsdl-org/SDL/issues/12510
(cherry picked from commit be6ed6e9c4
)
2025-03-10 14:46:30 -07:00
Sam Lantinga
9f32fafe21
Use sized types when fixing undefined behavior
...
(cherry picked from commit 24339524c5
)
2025-03-10 09:54:05 -07:00
rohlem
74b3b8e9e3
avoid UB (left shift of negative number) in SDL_windowsevents.c
...
(cherry picked from commit f1d16e9b4d
)
2025-03-10 09:54:05 -07:00
Frank Praznik
fa4a9ba74e
wayland: Fix enum/boolean comparison and assignment
...
(cherry picked from commit f2866418d4
)
2025-03-09 12:28:39 -04:00
Cameron Gutman
9a6f8a2512
mouse: Add internal integer mouse mode hint for sdl2-compat
...
Performing this inside SDL3 dramatically simplifies sdl2-compat. See https://github.com/libsdl-org/sdl2-compat/issues/372 .
(cherry picked from commit 597bfe6b27
)
2025-03-08 19:07:05 -08:00
bobsayshilol
1173bc2dde
emscripten: Fix handling of special HTML targets
...
With ASAN enabled the existing code triggered null-pointer-dereference
in the strcmp since EMSCRIPTEN_EVENT_TARGET_WINDOW is a "fake" pointer
with the value ((const char*)2). In fixing this it was also noticed
that using the #window/#document/#screen targets as mentioned in the
docs fails since document.querySelector() returns null for them and we
should instead be mapping them to the special HTML targets provided.
(cherry picked from commit 65cd2256c5
)
2025-03-08 17:16:57 -08:00
TheMode
ada55bd887
Implement SDL_GetSystemRAM and SDL_GetNumLogicalCPUCores for the 3ds ( #12494 )
...
(cherry picked from commit 5d804a39d9
)
2025-03-08 09:54:43 -08:00
Sam Lantinga
fe97cff7d1
Fixed memory leak in memory leak tracking
...
(cherry picked from commit 99336ea378
)
2025-03-08 09:54:43 -08:00
ds-sloth
8cdeb1a35a
Fix n3ds/SDL_syssem.c:SDL_SignalSemaphore ( libsdl-org/SDL#12411 )
...
(cherry picked from commit 0306b5a865
)
2025-03-07 17:32:05 -08:00
Sam Lantinga
7c82171a85
Fixed pen events on iOS after reinitializing SDL
...
We weren't resetting apple_pencil_id, so not re-registering it later.
(cherry picked from commit 3353b92a96
)
2025-03-07 16:33:09 -08:00
Sam Lantinga
2d2085c80b
Add a link to docs/INTRO-mingw.md
...
(cherry picked from commit d631a3add0
)
2025-03-06 16:26:15 -08:00
Joshua T. Fisher
03a4eea0ef
Added MinGW Intro readme, touched up CMake and Visual Studio readmes. ( #12485 )
...
(cherry picked from commit 04b4577b58
)
2025-03-06 16:26:15 -08:00
Sam Lantinga
fec3e2cd45
Removed logic forcing vsync on if setting it off fails
...
The platforms that needed this (Windows Phone and Windows RT) are no longer supported, and if this is needed in the future it should be done at the renderer level, not here.
Fixes https://github.com/libsdl-org/SDL/issues/12475
(cherry picked from commit b99ff00a95
)
2025-03-06 16:18:42 -08:00
Sam Lantinga
2aec1c2ef6
Added support for SDL_PIXELFORMAT_MJPG to SDL_DuplicateSurface()
...
Fixes https://github.com/libsdl-org/SDL/issues/12472
(cherry picked from commit 4c82b5843e
)
2025-03-05 23:39:33 -08:00
Sam Lantinga
b32cd4f84b
Make texture scale mode a part of the 2D renderer draw state
...
Also added texture addressing mode support to the PSP and Vita renderers (untested)
Fixes https://github.com/libsdl-org/SDL/issues/12461
(cherry picked from commit cb099ebd4f
)
2025-03-05 22:39:31 -08:00
SDL Wiki Bot
550bdc658a
Sync SDL3 wiki -> header
...
[ci skip]
(cherry picked from commit f01bcaeb17
)
2025-03-05 09:13:10 -08:00
Sam Lantinga
d75ba9c2d2
Added SDL_HINT_VIDEO_X11_EXTERNAL_WINDOW_INPUT
...
(cherry picked from commit fe9bdcf508
)
2025-03-05 09:13:10 -08:00
SDL Wiki Bot
2477f7f982
Sync SDL3 wiki -> header
...
[ci skip]
(cherry picked from commit 9f557941f3
)
2025-03-05 07:26:50 -08:00
Sam Lantinga
e454d7d4be
Document the thread safety of SDL surface functions
...
(cherry picked from commit 8f40dad460
)
2025-03-05 07:26:49 -08:00
Sam Lantinga
cd8bffb2dd
Fixed continuous logging if returning to desktop mode fails on X11
...
(cherry picked from commit aef240b2e4
)
2025-03-04 17:26:03 -08:00
Sam Lantinga
9646e3cc1b
Handle XWayland not sending display disconnected events
...
Also updated X11_CheckDisplaysMoved() to handle multiple X11 screens
Fixes https://github.com/libsdl-org/SDL/issues/12462
(cherry picked from commit e9632c83c7
)
2025-03-04 17:26:03 -08:00
Sam Lantinga
1a2362ebf1
Updated to version 3.2.9 for development
2025-03-04 15:07:23 -08:00
Sam Lantinga
f6864924f7
Updated to version 3.2.8 for release
release-3.2.8
2025-03-04 14:37:06 -08:00
Sam Lantinga
6b3dafa4d3
Fixed crash when restoring the desktop mode on macOS
...
Fixes https://github.com/libsdl-org/SDL/issues/12460
(cherry picked from commit 80ae3a7516
)
2025-03-04 14:34:10 -08:00
Sam Lantinga
5c0c5d2816
Fixed crash unplugging a HIDAPI controller
...
(cherry picked from commit 5f07347e4f
)
2025-03-04 11:42:37 -08:00
Sam Lantinga
de11dd3d60
Make SDL_RegisterEvents() thread-safe
...
Fixes https://github.com/libsdl-org/SDL/issues/12457
(cherry picked from commit 82552e5b7c
)
2025-03-04 10:28:53 -08:00
Frank Praznik
ac09af2600
video: Synthesize fullscreen related moves if the driver does not.
...
(cherry picked from commit 9f9a442823
)
2025-03-04 12:49:56 -05:00
Frank Praznik
26d1afa29c
x11: Synthesize fullscreen size events on Openbox
...
Openbox doesn't send size events when entering fullscreen, so they must be synthesized. This is not desirable on any other window manager, as it can break fullscreen positioning on multi-monitor configurations.
(cherry picked from commit e7abbf158a
)
2025-03-04 12:49:56 -05:00
Volian0
6aab3b9da8
Fix for Message Box failing to init on X11 ( #12455 )
...
Fixed X11 message boxes failing to initialize, because the proper X Logical Font Description could not be found
(cherry picked from commit debbe1cf75
)
2025-03-04 08:34:58 -08:00
Sam Lantinga
d959719a3d
Fixed clip rect when logical presentation is enabled
...
We don't need to include the logical offset, it's already included in the viewport.
Fixes https://github.com/libsdl-org/SDL/issues/12454
(cherry picked from commit 4bb46e93c8
)
2025-03-04 08:25:46 -08:00
Sam Lantinga
5a7b17fec5
Added fullscreen_active to better track fullscreen state
...
This is true if fullscreen is pending or currently active. This is a better check in SDL_SetDesktopDisplayMode() because a fullscreen mode may be pending and complete asynchronously and the window hasn't been set to fullscreen yet.
(cherry picked from commit 7c29c8b266
)
2025-03-03 21:19:15 -08:00
Frank Praznik
1d6bb62870
Use _this pointer to reference the video device
...
(cherry picked from commit 3b9f0dff10
)
2025-03-03 19:01:40 -05:00
Frank Praznik
0c3603d893
Check the display device before dereferencing
...
It can be null if the desktop mode is set early during initial display enumeration.
(cherry picked from commit 0ccf272eea
)
2025-03-03 11:25:25 -05:00
Frank Praznik
38a5bca892
video: Handle Cocoa desktop mode switch inhibition in the video layer
...
The X backend had the same issue, so both Cocoa and X can be handled in the same location.
(cherry picked from commit 6c347cbf33
)
2025-03-03 11:05:32 -05:00
Sam Lantinga
70a289076a
Don't save temporary mode changes to the desktop mode
...
Fixes https://github.com/libsdl-org/SDL/issues/12441
(cherry picked from commit 24ec2ed785
)
2025-03-03 11:05:20 -05:00
Simon McVittie
1d0ecf982f
pipewire: Don't require pw_check_library_version() with Pipewire < 0.3.75
...
The Debian 12 'bookworm' stable release only has 0.3.65, which is earlier
than the introduction of that symbol. Similarly, Steam Runtime 3 'sniper'
and Steam Runtime 2 'soldier' have a backport of 0.3.65 from Debian 12,
so they have the same limitation.
steamrt/tasks#686
Signed-off-by: Simon McVittie <smcv@collabora.com >
(cherry picked from commit d57aa6f7af
)
2025-03-03 07:32:51 -08:00
Sam Lantinga
18d93d11e1
Only use VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR on Android
...
This fixes Nintendo Switch where the identity bit isn't available. We only needed this on Android to automatically handle device user orientation.
(cherry picked from commit 2c7c3d4d7b
)
2025-03-02 09:14:12 -08:00
Sam Lantinga
110a832f5c
Save and restore error messages when rolling back after failed init
...
Fixes https://github.com/libsdl-org/SDL/issues/12439
(cherry picked from commit 1a7c206986
)
2025-03-02 07:57:36 -08:00
Frank Praznik
6a9e970880
cocoa: Don't overwrite the desktop mode when changing the fullscreen mode
...
Changing the mode triggers a display reconfiguration event, which will overwrite the desktop mode with the set fullscreen mode, preventing proper restoration when leaving fullscreen. Don't overwrite the desktop mode if the reconfiguration is due to a fullscreen mode switch.
(cherry picked from commit b69201daeb
)
2025-03-01 23:43:29 -05:00
Frank Praznik
4e3058ce82
cocoa: Run pending events to completion
...
Fullscreen spaces and miniaturization will always give us some notification that they succeeded or failed, so the timeout isn't required. This prevents errant timeouts when live-resize is active.
(cherry picked from commit 078d737a27
)
2025-03-01 19:34:00 -08:00
Sam Lantinga
bc6307a872
Updated to version 3.2.7 for development
2025-03-01 19:29:51 -08:00
Sam Lantinga
65864190cc
Added testpen to the Xcode test project
release-3.2.6
2025-03-01 18:49:25 -08:00
Sam Lantinga
292e431748
Updated to version 3.2.6 for release
2025-03-01 18:30:34 -08:00
Sam Lantinga
f0cb78e082
Handle XCreateIC() failing when composition UI is enabled
...
Fixes https://github.com/libsdl-org/sdl2-compat/issues/328
2025-03-01 13:54:07 -08:00
Sam Lantinga
55484ef023
Moved WIN_UpdateMouseCapture() to be with the other mouse functions
2025-03-01 12:54:17 -08:00
Sam Lantinga
020664bd10
Update mouse button state when re-entering a window
...
Fixes https://github.com/libsdl-org/SDL/issues/12423
2025-03-01 12:54:17 -08:00
Sam Lantinga
b836ad4d4f
Fix a root signature mismatch for the D3D12 renderer
...
The shaders hadn't been rebuilt after c74f273848
Fixes https://github.com/libsdl-org/SDL/issues/12276
2025-03-01 12:02:49 -08:00
Ryan C. Gordon
a88105784f
camera: Delete some failure code that should have been removed before.
2025-03-01 14:52:56 -05:00