Ozkan Sezer
73a8143581
timer, windows: allow building high resolution code with old SDKs.
2025-02-02 21:23:50 +03:00
Sam Lantinga
be991239d9
Updated to version 3.2.3 for development
2025-02-01 17:43:38 -08:00
Sam Lantinga
2fa1e7258a
Updated to version 3.2.2 for release
2025-02-01 17:01:45 -08:00
Em
c922762791
proposed fix: set curr_src.h is to bottom_height before drawing bottom edges / corners in SDL_RenderTexture9Grid, to avoid issue where inadvertently using top height if the npatch existed on a larger texture than the drawn edge would cause too many pixels to be included in the bottom part of the render.
2025-02-01 16:09:08 -08:00
John Kvalevog
dc13a6ae95
SDL_SaveBMP_IO: Write bitmap header v5 values
...
bV4CSType was changed to LCS_sRGB to work with Preview on macOS.
Fixes : #11903
2025-02-01 11:10:24 -08:00
Sam Lantinga
bc3264130d
Fixed mouse motion events while the mouse is grabbed
...
When the mouse is grabbed, the X server sends mouse events only to the grabbing client, and XInput2 events for the master device are not delivered.
We should consider using the window mouse rect confinement instead of a true X server grab for SDL mouse grab functionality.
2025-01-31 23:45:09 -08:00
Sam Lantinga
69d361dee1
Ignore SDL_HINT_RENDER_DRIVER set to software when creating a window surface
...
We handled the case where software was in a list of render drivers, but not when the hint was set to exactly "software".
Fixes https://github.com/libsdl-org/sdl2-compat/issues/266
2025-01-31 15:49:58 -08:00
Evan Hemsley
70a239210e
GPU: Describe "readonly storage" images as sampled images on Vulkan backend ( #12149 )
2025-01-31 15:07:33 -08:00
Sam Lantinga
4c6d949e6d
wayland: make sure the desktop mode is in the fullscreen mode list
...
Fixes https://github.com/libsdl-org/SDL/issues/12079
2025-01-31 14:53:40 -08:00
Sam Lantinga
ab5cb707a6
Fixed enabling call logging
2025-01-31 14:22:29 -08:00
Sam Lantinga
16f8122a0d
Keep the simplest mapping of scancode + modifer for a given keycode
...
Fixes https://github.com/libsdl-org/sdl2-compat/issues/259
2025-01-31 12:07:08 -08:00
Timothee Besset
6beda34215
do not build camera drivers if camera support is disabled
2025-01-31 10:24:54 -08:00
Frank Praznik
0825d07a43
wayland: Don't send size events while the window is hidden
...
Some clients don't expect this, and it can cause issues, particularly if events are emitted while creating a hidden window.
2025-01-31 12:40:07 -05:00
Evan Hemsley
8e766c9252
GPU: Resource binding state shadowing ( #12138 )
...
---------
Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com >
2025-01-31 08:34:10 -08:00
Ozkan Sezer
e4fcc7b6e7
gpu/vulkan/SDL_gpu_vulkan.c: fix type redefinition error
...
src/gpu/vulkan/SDL_gpu_vulkan.c:763: error: redefinition of typedef 'VulkanUniformBuffer'
src/gpu/vulkan/SDL_gpu_vulkan.c:482: note: previous declaration of 'VulkanUniformBuffer' was here
2025-01-31 02:50:00 +03:00
John Alanbrook
14edb21aec
check for backslashes as well as the forward slash
2025-01-30 12:41:48 -08:00
Ryan C. Gordon
943c4abcb4
pipewire: Report correct device default formats instead of hardcoding Float32.
...
The comment in the source wasn't true; PipeWire doesn't _have_ to work in
float format. It presumably does if it has to mix, but if a game is the only
thing making noise on the system--a common scenario--then it might be able to
pass, say, Sint16 data straight through to the hardware without conversion.
Fixes #12129 .
2025-01-30 02:46:56 -05:00
Aki
943579a545
Fix inverted pen Y tilt on macOS and add tilt display to example
...
- Negate tilt.y in Cocoa pen handling to correct inverted Y tilt axis
- Update drawing example to display X/Y tilt values for visualization
- see 0f128fd7c5/src/plugins/platforms/cocoa/qnsview_tablet.mm (L63)
- see https://source.chromium.org/chromium/chromium/src/+/main:components/input/web_input_event_builders_mac.mm;drc=0af5ffa1e4cc4cc4f818725f8fee93ec57855e4b;l=421
2025-01-29 22:09:02 -08:00
Seth Anderson
2abc7735a4
Free XIDeviceInfo in X11_MaybeAddPenByDeviceID
2025-01-29 10:55:49 -08:00
Sam Lantinga
8298d60e4a
Dynamically load CreateWaitableTimerExW and SetWaitableTimerEx
...
These functions are not available on Windows XP
2025-01-29 05:40:49 -08:00
Timothee Besset
cf249b0cb2
fix -Wformat problem in 32 bit builds
2025-01-28 16:57:25 -08:00
Ryan C. Gordon
ccd5fcef12
audio: Fix potential NULL dereference in AudioStream gain adjustment.
...
You can end up with a NULL scratch buffer, which is otherwise not needed on
this path, then ConvertAudio will end up needing that scratch space to move
to float32 to apply gain.
Fixes #12091 .
(I assume.)
2025-01-28 13:14:25 -05:00
Frank Praznik
48f5550651
wayland: Don't send keyboard and mouse added events during initialization
...
Only send them when a device is added post-initialization, as is done on other platforms.
2025-01-28 13:02:29 -05:00
Adam Kewley
1c008d8ed0
Change DBUS introspection timer from INFINITE -> DEFAULT when introspecting available dialog services
2025-01-28 05:13:35 -08:00
Carl Åstholm
c21bc48a70
Fix undefined behavior in SDL_windowsmouse.c
...
This fix prevents C undefined behavior from being invoked on Windows
if the user's configured cursor speed is below 6.
2025-01-28 05:12:16 -08:00
Sam Lantinga
1c7cc60286
Skip IsRegularFileOrPipe() check on Emscripten
...
The sandbox guarantees that this will be true.
Fixes https://github.com/libsdl-org/SDL/issues/12108
2025-01-27 22:25:12 -08:00
Ryan C. Gordon
8f958953f1
audio: Fix audio stream gain going wrong in certain scenarios.
...
Fixes #12091 .
2025-01-27 20:20:17 -05:00
Ryan C. Gordon
3b3af7105b
audio: Fix a minor code style thing.
2025-01-27 20:20:17 -05:00
Petar Popovic
6f098a920e
Avoid a crash when a tray without a menu is clicked on Windows.
2025-01-26 23:27:28 -08:00
Ryan C. Gordon
09f900f66e
audio: Remove resampling limits.
...
Audio streams used to accept audio with a src or dest frequency between
4000Hz and 384000Hz. It was arbitrary (or perhaps a relic of older
resampler revisions), and testing shows unnecessary, so remove it.
Fixes #12098 .
2025-01-27 01:13:54 -05:00
Sam Lantinga
5f8e0ebf58
Fixed memory leak at shutdown
2025-01-26 19:30:29 -08:00
nightmareci
2e381a717f
Fix possible integer overflow of size + 1
2025-01-23 15:57:23 -08:00
Petar Popovic
a336b62d8b
Remove newlines from error messages
2025-01-23 11:45:04 -08:00
Frank Praznik
d0ae093681
x11: Don't force position windows with an undefined position
...
An undefined position means that the window manager can handle placement, so SDL shouldn't override that by forcing a position when showing a window.
Allows for removing a fair bit of now-unnecessary code as well.
2025-01-23 14:36:26 -05:00
hspir404
72a3eae0da
Fix buffer overrun in ConvertAudio with different src/dst channel count
...
- Source or destination format also has to not be F32 to trigger bug
2025-01-23 13:52:31 -05:00
Petar Popovic
983cfe8b1c
Remove even more newlines from log messages
2025-01-23 09:32:50 -08:00
nightmareci
718034f5fa
Remove newlines from log messages
2025-01-22 20:25:04 -08:00
Sam Lantinga
6f3d0b3cdb
Fixed build when using an older Xcode SDK
...
Fixes https://github.com/libsdl-org/SDL/issues/12048
2025-01-21 18:17:02 -08:00
Sam Lantinga
77b520e93e
Updated to version 3.2.1 for development
2025-01-21 14:02:06 -08:00
Sam Lantinga
b775135b4f
Removed temporary debug code
2025-01-21 08:57:08 -08:00
Sam Lantinga
a52fc209bb
Updated to version 3.2.0 for release
2025-01-21 08:52:28 -08:00
Ryan C. Gordon
90bda6548f
video: Don't let SDL_CreateWindowTexture use the software renderer.
...
It used to check for "software" in the hint, but now it has to parse a
comma-separated list.
If it tries to use the software renderer here, you'll end up in an infinite
recursion.
2025-01-21 11:29:00 -05:00
Ryan C. Gordon
c45c4a5e51
render: SDL_HINT_RENDER_DRIVER now accepts a comma-separated list.
...
Fixes #11077 .
2025-01-21 11:29:00 -05:00
Sam Lantinga
8526868563
dialog: cleaned up D-Bus portal implementation
...
Fixes https://github.com/libsdl-org/SDL/issues/12036
2025-01-20 22:57:42 -08:00
Ryan C. Gordon
071bebf235
coreaudio: Add a note about why this uses 3 buffers instead of 2.
2025-01-20 23:29:53 -05:00
Katelyn Gadd
c0a9d220b9
vulkan: Fixes for swapchain resize crash on X11.
...
Fixes #11075 .
2025-01-20 23:17:38 -05:00
Ryan C. Gordon
6d5815db52
vulkan: Deal with VK_ERROR_OUT_OF_DATE_KHR returns from vkAcquireNextImageKHR.
...
Fixes #11075 .
2025-01-20 22:32:23 -05:00
Katelyn Gadd
6b7dad7d82
vulkan: move temporary pointer to its own field to prevent a bad dereference.
...
Reference Issue #11075 .
2025-01-20 22:32:23 -05:00
Tomasz Pakuła
10c9fbf411
Use proper polar direction when creating FF_RUMBLE effect
...
Uses proper polar direction of 90 degrees. Previous value probably came from mistakenly using spherical system default.
2025-01-20 16:52:40 -08:00
Tomasz Pakuła
c6c7469708
Translate conditional effect direction instead of hardcoding it to 0
...
Provious code wrongly assumed that direction is not an important part
of conditional effect. Moreover, if there's need to hardcode polar
direction, the default should be 0x4000 (north).
For one axis affects, a direction of 0 means complete lack of force, if
a FFB-enabled device takes direction into force calculation. A sine function
graph can be used to represent the resulting forces where X is the input
direction and Y is the force multiplier (360 degrees equals to 1).
This fixes conditional effect playback on Moza Racing devices, which do
not ignore direction field.
2025-01-20 16:52:40 -08:00