SDL Wiki Bot
04f3bdb118
Sync SDL3 wiki -> header
...
[ci skip]
2025-01-04 08:24:05 +00:00
Ryan C. Gordon
18c6958cae
SDL_vulkan.h: Improve SDL_Vulkan_LoadLibrary/SDL_Vulkan_UnloadLibrary docs.
...
Fixes #9541 .
2025-01-04 03:22:34 -05:00
Daniel Wymark
522682cd6e
Add detailed documentation on building with MinGW64 ( #11780 )
2025-01-03 21:07:38 -08:00
Sam Lantinga
a4cd17cce5
Fixed building on macOS with the dialog subsystem disabled
2025-01-03 16:17:16 -08:00
Anonymous Maarten
efba42a67b
tests: avoid undefined signed overflow
2025-01-04 01:06:29 +01:00
Sam Lantinga
156b3b4a8c
Fixed language detection on iOS
...
On iOS you might see traditional Chinese on a US phone as: "zh-Hans_US"
2025-01-03 15:27:08 -08:00
Anonymous Maarten
53aaf8c26b
cmake: custom generate-XXX targets must depend on outputs
2025-01-04 00:19:45 +01:00
SDL Wiki Bot
9b40d43b1f
Sync SDL3 wiki -> header
...
[ci skip]
2025-01-03 22:37:37 +00:00
Frank Praznik
85851459d6
docs: Note that using the Wayland display scaling mode can have imprecision when positioning due to unit conversion and rounding
2025-01-03 17:36:36 -05:00
Anonymous Maarten
db97da4ccb
ci: bump FreeBSD to 14.2
...
[sdl-ci-filter netbsd]
[sdl-ci-filter freebsd]
2025-01-03 23:24:41 +01:00
Frank Praznik
5579010b6a
wayland: Adjust the scaled popup position even if the dimensions didn't change
...
Otherwise, the unscaled position will be sent.
2025-01-03 17:17:16 -05:00
Ryan C. Gordon
2d37903323
pen: implement pen support for Windows.
...
Fixes #10516 .
2025-01-03 12:58:49 -05:00
Sam Lantinga
ef21ccf080
Create a separate metal shader for NV12 textures
...
Also unify the color output function so it works with the various combinations of input and output colorspaces.
Fixes https://github.com/libsdl-org/SDL/issues/11727
2025-01-03 09:30:47 -08:00
Sam Lantinga
49663bfb58
Make Windows dialogs DPI aware
...
Fixes https://github.com/libsdl-org/SDL/issues/4775
Fixes https://github.com/libsdl-org/SDL/issues/9691
2025-01-03 09:25:10 -08:00
Sam Lantinga
a8c41135aa
Enable themed Windows dialogs when building with Visual Studio
2025-01-03 09:25:10 -08:00
Anonymous Maarten
8b83a57847
Check that dll's built by MinGW do not link to unwanted runtime libraries
2025-01-03 16:56:22 +01:00
Ryan C. Gordon
e484182765
testcamera: Log the camera backend in use.
2025-01-03 03:46:22 -05:00
SDL Wiki Bot
011454b237
Sync SDL3 wiki -> header
...
[ci skip]
2025-01-03 03:10:47 +00:00
Sam Lantinga
efc390d7e2
Don't log SDL errors by default
...
There are many recoverable errors that may happen internally and can be safely ignored if the public API doesn't return an error code. Seeing them causes lots of developer anxiety and they generally aren't helpful.
Fixes https://github.com/libsdl-org/SDL/issues/11813
2025-01-02 17:32:10 -08:00
Sam Lantinga
c077b7a918
Fixed the version availability of SDL_HINT_JOYSTICK_ENHANCED_REPORTS
2025-01-02 17:28:45 -08:00
SDL Wiki Bot
0b520cd4b4
Sync SDL3 wiki -> header
...
[ci skip]
2025-01-03 01:18:56 +00:00
Sam Lantinga
9f7b2c3595
Fixed incorrect error message when a joystick can't be opened
2025-01-02 17:18:09 -08:00
Sam Lantinga
2c0a8363a5
Added SDL_HINT_JOYSTICK_ENHANCED_REPORTS
...
This hint defaults on, enabling advanced controller features.
This replaces SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE and SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, and is supported by PlayStation and Nintendo Switch controllers.
Fixes https://github.com/libsdl-org/SDL/issues/10086
2025-01-02 17:18:09 -08:00
SDL Wiki Bot
95d44f11c7
Sync SDL3 wiki -> header
...
[ci skip]
2025-01-02 20:40:15 +00:00
SDL Wiki Bot
16dfaca728
Sync SDL3 wiki -> header
...
[ci skip]
2025-01-02 20:06:39 +00:00
SDL Wiki Bot
32ab09ba21
Sync SDL3 wiki -> header
...
[ci skip]
2025-01-02 19:44:57 +00:00
Frank Praznik
1461f893c3
video: Correct the window position property documentation
...
Windows are only relative to the parent if the "tooltip" or "menu" property is set.
2025-01-02 14:44:08 -05:00
SDL Wiki Bot
a63052db96
Sync SDL3 wiki -> header
...
[ci skip]
2025-01-02 19:17:51 +00:00
Sam Lantinga
dd6b484359
Document platform gamepad hotplug requirements
...
Fixes https://github.com/libsdl-org/SDL/issues/11742
2025-01-02 11:16:35 -08:00
Sam Lantinga
ecf8dd054d
Show the display content scale in SDLTest_CommonDrawWindowInfo()
2025-01-02 10:58:15 -08:00
Sam Lantinga
4797970bfa
Enable SDL_HINT_JOYSTICK_THREAD by default
...
If you're not using SDL for video you won't get raw input messages without this hint, and this is tripping up enough people it makes sense to have this enabled by default. There isn't much downside to this, other than having another thread processing Xbox controller input.
Fixes https://github.com/libsdl-org/SDL/issues/10576
2025-01-02 10:25:18 -08:00
Sam Lantinga
6b4b9b5f2b
Improved XInput controller detection
...
Sometimes we'll get a Windows.Gaming.Input callback before the raw input device is even in the list, so try some other methods to better detect XInput devices.
2025-01-02 10:25:18 -08:00
Frank Praznik
8ea4b326b3
video: Fix focus when non-focused popup windows are hidden
...
Fix focus issues when a popup that is the child of a window that does not currently have keyboard focus is hidden or destroyed.
2025-01-02 13:24:24 -05:00
Katelyn Gadd
67ea67f191
Fix mip generation for 2x1 textures on D3D12
2025-01-02 13:17:06 -05:00
Erik Soma
c6b5c21aaf
clipboard: Ensure SDL_ClearClipboardData clears data even when no data has been set
2025-01-02 07:23:27 -08:00
Anonymous Maarten
f8f8d87bfa
ci: always create binary packages if build succeeded
2025-01-02 01:15:28 +01:00
Anonymous Maarten
b713e7581b
stdlib: fix SDL_strtol of "0" with base 0
...
SDL_strtol("0") skipped the "0" octal prefix
and returned a failure because the remainder of the string was empty.
2025-01-02 01:15:28 +01:00
Ozkan Sezer
54752f8d1c
SDL_malloc.c: replace FORCEINLINE usage with SDL_FORCE_INLINE
2025-01-02 01:15:28 +01:00
Anonymous Maarten
3842384a38
dynapi: trigger a breakpoint on a fatal error when SDL is built in debug mode
2025-01-02 01:15:28 +01:00
Anonymous Maarten
6cf6b160cd
SDL_hashtable: don't use assert from libc
...
Co-authored-by: Ozkan Sezer <sezeroz@gmail.com>
2025-01-02 01:15:28 +01:00
Anonymous Maarten
62bc2c4c92
SDL_malloc: don't define FORCEINLINE
...
The FORCEINLINE macro is also used by Windows SDK headers.
When it is an empty macro, FORCEINLINE-d functions will
get global visibility error and cause duplicate symbol link errors.
HRESULT_FROM_WIN32 is such a function.
2025-01-02 01:15:28 +01:00
Anonymous Maarten
4fccfb142e
cmake: avoid security cookies in SDL_uclibc when building with -DSDL_LIBC=ON
2025-01-02 01:15:28 +01:00
Anonymous Maarten
4fbf59ac3a
Implement __chkstk for arm64
...
Lifted from a previously built SDL3.dll
2025-01-02 01:15:28 +01:00
Anonymous Maarten
578ac0ef52
SDL_malloc: disable malloc stats
...
This avoids bringing in stdio.
2025-01-02 01:15:28 +01:00
Anonymous Maarten
31a4c92ee5
When building with libc enabled, we don't need to provide __chkstk ourselves
2025-01-02 01:15:28 +01:00
Sam Lantinga
02e85a153f
Use the expected plane size when capturing Android camera frames
...
On the Samsung Galaxy A52 the camera plane size is (pitch * (h - 1) + w) instead of (pitch * h). This led to us copying off the end of the plane when uploading the texture, so we pad out to our expected size.
2025-01-01 15:58:27 -08:00
Sam Lantinga
9955e1dc0d
Updated the Android gradle plugin to version 8.7.3
2025-01-01 14:33:18 -08:00
Sam Lantinga
0281071243
Lock joysticks when they are connected/disconnected on emscripten
...
Fixes https://github.com/libsdl-org/SDL/issues/11499
2025-01-01 13:51:47 -08:00
SDL Wiki Bot
c68ed04a06
Sync SDL3 wiki -> header
...
[ci skip]
2025-01-01 21:27:47 +00:00
Frank Praznik
2b1d809b21
video: Fix positioning and focusing popups parented to child toplevel windows
...
Find the toplevel parent window, not the absolute highest toplevel window in the hierarchy, when positioning and adjusting the focus of popup windows.
Fixes a leftover case from when toplevel windows couldn't be parented to other toplevels.
2025-01-01 14:40:29 -05:00