Carl Åstholm
996466e855
Check if GL_OES_EGL_image_external is supported before trying to use it
...
(cherry picked from commit dd9b9d4513
)
2025-03-24 19:52:54 -07:00
Carl Åstholm
61e7878ac0
Document SDL_malloc alignment guarantees
...
(cherry picked from commit 7ec13a2ead
)
2025-03-24 19:41:08 -07:00
Frank Praznik
c067cb4e7d
wayland: Fix global mouse position retrieval
...
(cherry picked from commit 8cb303126f
)
2025-03-24 19:06:35 -04:00
Sam Lantinga
38697dd812
Fixed mixed trigger and body rumble for Xbox controllers on Windows
...
Fixes https://github.com/libsdl-org/SDL/issues/12095
(cherry picked from commit b6ca03611f
)
2025-03-24 11:07:12 -07:00
Cameron Gutman
f03572335a
keyboard: Don't check text input on a null window
...
(cherry picked from commit c3a3a11db4
)
2025-03-23 23:53:19 -05:00
Frank Praznik
d8837edfa2
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.
(cherry picked from commit 027df89ed3
)
2025-03-22 14:36:05 -04:00
expikr
e5f8043037
chore: rename integer mode field names
...
(cherry picked from commit f52f982b1e
)
2025-03-22 09:37:33 -07:00
Sam Lantinga
134b57f6f5
Improve move/resize visual smoothness on Windows
...
Fixes https://github.com/libsdl-org/SDL/issues/12528
(cherry picked from commit 6b13d69105
)
2025-03-21 16:47:29 -07:00
Marcin Serwin
072e760197
audio: hold floating point exceptions when using neon
...
(cherry picked from commit 4fcef9074b
)
2025-03-21 15:09:24 -07:00
Frank Praznik
d37a3e2a71
x11: Fix backwards _NET_WM_SYNC_REQUEST init check
...
(cherry picked from commit b493e29a81
)
2025-03-21 15:34:26 -04:00
Sam Lantinga
ed8e7e85f0
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
(cherry picked from commit 2fbb583290
)
2025-03-21 12:15:09 -07:00
Frank Praznik
eb9faad124
cocoa: Fix zoom check when leaving fullscreen
...
Non-resizable windows will always report as zoomed, so isZoomed is not a reliable check here.
(cherry picked from commit 79081a178f
)
2025-03-21 14:44:53 -04:00
Frank Praznik
3ed80843fe
video: Fix boolean logic for getting the pending window position
...
(cherry picked from commit 03cdd297e0
)
2025-03-21 11:36:46 -07:00
hwsmm
4029521a63
Don't send text event while ctrl/alt is held on X11/Wayland
...
(cherry picked from commit ac5b2b6102
)
2025-03-20 21:27:22 -07:00
Sam Lantinga
f971a59746
Fixed DebugLogRenderCommands() output
...
(cherry picked from commit 758eb256b9
)
2025-03-20 21:25:23 -07:00
Sam Lantinga
5836266bfb
We need to rebind D3D12 resources after updating them
...
Fixes https://github.com/libsdl-org/SDL/issues/12544
(cherry picked from commit 4ceb02434b
)
2025-03-20 20:22:33 -07:00
Max
ed893bde04
Updates SDL_SetEventFilter code snippet to SDL3
...
SDL_EventFilter points to a function that now returns a bool
(cherry picked from commit 817260c73d
)
2025-03-20 16:50:53 -07:00
Carl Åstholm
a934a36a18
emscripten: Don't use legacy JS library functions for assertions
...
(cherry picked from commit 54f5b73333
)
2025-03-20 16:32:40 -07:00
Sam Lantinga
59857acd08
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
(cherry picked from commit 03a53ce0d1
)
2025-03-20 16:30:04 -07:00
Sam Lantinga
8129b637f3
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.
(cherry picked from commit 8caeaaacdd
)
2025-03-20 16:30:04 -07:00
Sam Lantinga
9e1675671d
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
(cherry picked from commit cbb83be895
)
2025-03-20 16:30:04 -07:00
SDL Wiki Bot
d39d951f89
Sync SDL3 wiki -> header
...
[ci skip]
(cherry picked from commit 67b4c3a156
)
2025-03-20 16:30:04 -07:00
Ryan C. Gordon
10ed6f49a9
asyncio: SDL_LoadFileAsync was not null-terminating the file data.
...
(cherry picked from commit 10072bb07d
)
2025-03-20 16:30:04 -07:00
Ryan C. Gordon
c2c848a752
SDL_audio.h: Fixed typos in docs.
...
(cherry picked from commit 85435d5a14
)
2025-03-20 16:30:04 -07:00
Sam Lantinga
8b191c3ca6
Fixed typo in build.gradle
...
(cherry picked from commit fe024b8fe3
)
2025-03-20 11:22:20 -07:00
Sam Lantinga
06a412cd68
Fixed gradle deprecation warnings
...
"Space-assignment syntax in Groovy DSL has been deprecated. This is scheduled to be removed in Gradle 10.0"
(cherry picked from commit bf7b9b020e
)
2025-03-20 11:05:56 -07:00
Sam Lantinga
b74609d5f3
Use the android-21 SDK as documented in README-android.md
...
(cherry picked from commit ac28702504
)
2025-03-20 11:05:56 -07:00
Sam Lantinga
d8756582f9
Don't create surfaces with invalid pixel formats
...
Fixes https://github.com/libsdl-org/SDL/issues/12556
(cherry picked from commit 476e7e54cb
)
2025-03-20 09:43:40 -07:00
Sam Lantinga
ff90984dc3
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
(cherry picked from commit f2ed5c7a1b
)
2025-03-19 22:03:18 -07:00
Sam Lantinga
81952f9f96
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
(cherry picked from commit 96bf12444c
)
2025-03-19 21:23:06 -07:00
Sam Lantinga
d0122ff624
Make sure we're getting called for the correct window
...
Fixes https://github.com/libsdl-org/SDL/issues/12525
(cherry picked from commit 47b0c75470
)
2025-03-19 20:22:52 -07:00
Sam Lantinga
7a36aa37aa
Fixed crash if a window couldn't be created on Windows
...
Fixes https://github.com/libsdl-org/SDL/issues/11482
(cherry picked from commit 3415bc920a
)
2025-03-19 20:10:49 -07:00
Dragon-Baroque
464cb0ab6e
The posix4 library has been merged into the libc library
...
(cherry picked from commit 07e4dea693
)
2025-03-19 18:41:51 -07:00
Evan Hemsley
ac21e3ef3f
GPU Vulkan: Fix render pass race ( #12587 )
...
(cherry picked from commit c696e93180
)
2025-03-19 13:34:26 -07:00
Frank Praznik
a5b51669fb
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.
(cherry picked from commit 7b93a744c8
)
2025-03-19 12:27:39 -04:00
Carl Åstholm
0ac030549b
emscripten: Fix undefined behavior in opengles2 renderer
...
(cherry picked from commit 14deef997c
)
2025-03-18 19:19:01 -07:00
Frank Praznik
6f1afe7084
video: Send pending coordinates for moved, hidden windows
...
Some backends can't actually position a window until it is shown/mapped, so assume that it will be where it was asked to be as long as it is hidden.
(cherry picked from commit d66483dfcc
)
2025-03-18 19:56:25 -04:00
Sam Lantinga
6302589829
Use an autoreleasepool in Cocoa_GetDisplayUsableBounds()
...
Fixes https://github.com/libsdl-org/SDL/issues/12571
(cherry picked from commit 8b924df48b
)
2025-03-18 14:40:01 -07:00
Sam Lantinga
3225d31679
Fixed building with SDL_LEAN_AND_MEAN
...
Fixes https://github.com/libsdl-org/SDL/issues/12578
(cherry picked from commit 82335fd0e9
)
2025-03-18 09:55:46 -07:00
Arnoldo Adonaí Barón Robles
ae05ab280d
Fix Vulkan error check
...
(cherry picked from commit a551c2a6d7
)
2025-03-17 22:11:21 -07:00
Caleb Cornett
51a6cb2cf5
gpu: Fix MTLLibrary dispatch data destructor
...
(cherry picked from commit 6d0fb0a2e6
)
2025-03-17 18:54:30 -07:00
Evan Hemsley
daf468e141
GPU: Fix Vulkan backend never checking deallocations ( #12567 )
...
---------
Co-authored-by: Sam Lantinga <slouken@libsdl.org >
(cherry picked from commit 0bd70684b3
)
2025-03-17 13:59:47 -07:00
Sam Lantinga
cd673c8254
Fixed raw input device GUIDs changing randomly between runs
...
On Windows 11, apparently HidD_GetManufacturerString() and HidD_GetProductString() can return TRUE without actually filling in any string data.
Fixes https://github.com/libsdl-org/SDL/issues/12566
(cherry picked from commit 4fc9509ab7
)
2025-03-17 13:57:15 -07:00
Sam Lantinga
3f13c0b36d
Fixed crash if info->path is NULL
...
(cherry picked from commit 715301cef5
)
2025-03-17 09:46:57 -07:00
Cameron Gutman
3e34720851
mouse: Allow use of integer coordinates with fractional wheel events
...
SDL 2.0.18 added preciseX/Y to mouse wheel events, which we cannot
emulate in sdl2-compat without a mechanism to control integer position
and scroll deltas separately.
(cherry picked from commit aad1e35162
)
2025-03-15 13:44:19 -07:00
Sam Lantinga
0799237d74
Added unaligned version of SDL_ConvertPixels_SwapNV_std()
...
Fixes https://github.com/libsdl-org/SDL/issues/12546
(cherry picked from commit 501e71f25f
)
2025-03-15 09:25:39 -07:00
Sam Lantinga
53f64e40c4
Fixed SDL_GPUTextureSupportsSampleCount() documentation
...
Fixes https://github.com/libsdl-org/sdlwiki/issues/751
(cherry picked from commit ffe69fc354
)
2025-03-14 09:30:44 -07:00
Frank Praznik
a530df20b2
cocoa: Set the internal window data before calling methods that may result in referencing the internal data
...
(cherry picked from commit 512d97eaba
)
2025-03-12 17:09:37 -04:00
Sam Lantinga
b958189c92
Removed help for obsolete (and removed) command line option
...
(cherry picked from commit 50a397bb45
)
2025-03-12 12:38:52 -07:00
Sam Lantinga
341f910835
Initialize the padding of aligned allocations to zero
...
Fixes valgrind uninitialized memory errors when doing SIMD blits
e.g. testautomation --filter surface_testScale
(cherry picked from commit 3235a4eb4f
)
2025-03-12 11:43:09 -07:00