expikr
5373271a12
forbid transform change while relative mode active
2025-03-02 07:53:09 -08:00
expikr
428f0dcd61
add SDL_SetRelativeMouseTransform
2025-03-02 07:53:09 -08:00
Arkadiusz Lach
67127afe3f
Fix from #12118
2025-03-02 07:52:25 -08:00
Arkadiusz Lach
e25ee22469
Added tiled 9-grid texture rendering function
...
* New function SDL_RenderTexture9GridTiled, borders and center is tiled instead of stretched
2025-03-02 07:52:25 -08:00
SDL Wiki Bot
954675b32a
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-02 15:52:11 +00:00
Arkadiusz Lach
44bca81fdd
Change default texture scale mode per renderer
...
* SDL_SetDefaultTextureScaleMode(SDL_Renderer *renderer, SDL_ScaleMode scale_mode)
* SDL_GetDefaultTextureScaleMode(SDL_Renderer *renderer, SDL_ScaleMode *scale_mode)
2025-03-02 07:51:17 -08:00
Caleb Cornett
b0d2a4f355
gpu: Fix Z offset for D3D12 realigned 3D texture uploads
2025-03-02 00:04:57 -05:00
Frank Praznik
b69201daeb
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.
2025-03-01 22:55:38 -05:00
Frank Praznik
078d737a27
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.
2025-03-01 19:33:38 -08:00
Sam Lantinga
b0df1cbbef
Updated to version 3.3.0 for development
2025-03-01 19:31:00 -08:00
Sam Lantinga
65864190cc
Added testpen to the Xcode test project
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
Brick
f868408a3a
Ceil the audio resampling rate to avoid over-estimating output samples.
...
Reverts 580a496391 , fixes #12115
2025-03-01 11:07:55 -08:00
Anonymous Maarten
cbdc93b17f
cmake: make sure a SDL3 library is present when not using COMPONENTs
2025-03-01 17:54:45 +01:00
Anonymous Maarten
8a7beca122
camera: clear the spec when closing, so re-opening can probe again
2025-03-01 08:34:01 -08:00
SDL Wiki Bot
ee5f5c9172
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-01 16:26:19 +00:00
Sam Lantinga
6e4193b743
Note that the file names are UTF-8 encoded
2025-03-01 08:25:31 -08:00
Ozkan Sezer
60c65f9fa4
SDL_camera.c: fix failure-return in SDL_PrepareCameraSurfaces().
2025-03-01 04:37:02 +03:00
Sam Lantinga
b8c2bc143e
Added build dependencies for Arch Linux
...
These are based on the dependencies listed at:
https://archlinux.org/packages/extra/x86_64/sdl3/
2025-02-28 16:31:10 -08:00
SDL Wiki Bot
7ab1412e20
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-28 21:21:47 +00:00
Ryan C. Gordon
725af6ad16
camera: Fixed surface formats, etc, for Emscripten backend.
...
Fixes #12374 .
2025-02-28 16:15:01 -05:00
Sam Lantinga
ef23ebfb5a
Fixed the cursor clip rect when toggling window borders on macOS
2025-02-28 11:57:34 -08:00
guitarfreak
c682599448
GPU_d3d12: Switched the default swapchain scaling mode to none.
...
Since there is no option to change it this seems like a much better default value. The stretching behaviour is really off-putting.
The new behavior shows a small black border when resizing the windows. This makes it more in line with the other backends and it's what you would expect to happen as a user.
2025-02-28 11:33:51 -08:00
guitarfreak
ea513fd47c
Fixed vulkan gpu backend android orientation behaviour to just work like on iOS.
...
I changed it so that the OS does the orientation change itself with a potential performance penalty.
This makes it automatically do the right thing, just like on iOS which would make the orientation change behaviour more consistent across different platforms.
But without adding an option to the user, this would disallow the user solving the problem in his in the app/shaders and saving some performance.
It's up to you to decide what to do. But I changed this in my local copy of the source for my use case.
But this also
2025-02-28 07:34:16 -08:00
Elbagast
87b1c9736f
Fix pen generated mouse events not having SDL_PEN_MOUSEID ( #12392 )
...
* Update SDL_mouse.c
Stop a mouseID of SDL_PEN_MOUSEID being discarded when dispatching mouse events. I'm not sure if this enough to fix the lack of SDL_PEN_MOUSEID being emitted.
* Update SDL_mouse.c
Since we test for touch input here we also test for pen input in the same way.
* Stop duplicate synthetic touch events
If SDL_HINT_PEN_MOUSE_EVENTS and SDL_HINT_MOUSE_TOUCH_EVENTS are both enabled, the pen generated synthetic mouse event will then produce a touch event without this additional check.
This requires the previous commits in order to do anything since it needs to be able to identify those pen generated mouse events.
2025-02-27 20:45:27 -05:00
Wim Taymans
a44107540d
sysjoystick: don't leak fd on error
2025-02-27 19:49:46 -05:00
Wim Taymans
9a802797d2
SDL_pen: fix eraser check
...
It looks like a copy and paste error.
2025-02-27 19:49:46 -05:00
SDL Wiki Bot
54c7aa9c90
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-28 00:42:06 +00:00
Ryan C. Gordon
35e8cf8ee6
render: allow render targets to use logical presentation.
...
Fixes https://github.com/libsdl-org/sdl2-compat/issues/279
2025-02-27 19:41:11 -05:00
Sam Lantinga
281f0fae1c
Include the VID/PID of generic keyboard/mouse devices on Windows
2025-02-27 14:03:39 -08:00
Frank Praznik
d09bf56818
clipboard: Cleanup coding style
2025-02-27 12:35:37 -05:00
Frank Praznik
edaf447678
tests: Add showing/setting the primary selection text to testclipboard
2025-02-27 12:35:37 -05:00
Frank Praznik
7b9036bea6
wayland: Don't overwrite clipboard data with the primary selection text
...
Primary selection text is handled separately, and shouldn't clobber the clipboard data.
2025-02-27 12:35:37 -05:00
Ryan C. Gordon
f7cadcba84
examples: Use SDL_GetAudioStreamQueued, not SDL_GetAudioStreamAvailable.
...
The "available" side is at the mercy of whatever format the hardware wants,
but we control what we queued.
Fixes #12403 .
2025-02-27 11:46:56 -05:00
Alexander Batalov
b3336c5a73
Match style
2025-02-27 07:10:09 -08:00
Alexander Batalov
2b784b5bf6
Fix SDL_GlobDirectory
2025-02-27 07:10:09 -08:00
Sam Lantinga
eb89d0c8c3
Don't put wired Switch Pro controllers into simple report mode
...
This stops the controller from sending input or responding to queries until it's unplugged.
2025-02-26 17:54:43 -08:00
Sam Lantinga
1ea99bc904
Early out if setting a duplicate window title
...
Setting the window title is an expensive windowing operation, so short circuit it if possible.
2025-02-26 17:10:41 -08:00
SDL Wiki Bot
56e2955b6a
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-26 21:03:33 +00:00
Sam Lantinga
cc984c9735
Added a mapping for the 8BitDo SN30 Pro+ controller on macOS
...
This mapping is for Android mode (Start + B at startup)
Fixes https://github.com/libsdl-org/SDL/issues/12126
2025-02-26 12:24:47 -08:00
Sam Lantinga
ba88b6aa06
Fixed reliability of initializing Switch controllers on macOS
...
It looks like both macOS (15.1.1) and SDL are trying to talk to the controller at the same time, which can cause interleaved replies or even locking up the controller. Waiting a bit before talking to the controller seems to take care of this.
2025-02-26 12:24:47 -08:00
Sam Lantinga
66ecdc69ac
Don't update the report mode until the related hint is set
...
Fixes https://github.com/libsdl-org/SDL/issues/12404
2025-02-26 12:24:47 -08:00
Frank Praznik
fab52b578f
wayland: Ensure that color descriptions are always retrieved
2025-02-26 15:15:44 -05:00
jsoulier
9464aaa8af
Change D3D12 GPU backend to respect has_depth_stencil_target
2025-02-26 10:16:50 -08:00
Sam Lantinga
cf819ca818
Don't allow further operations on properties while we're destroying them
...
Fixes https://github.com/libsdl-org/SDL/issues/12407
2025-02-26 08:34:14 -08:00