CasualPokePlayer
780ec8fac0
Set EGL surface for foreign X11 windows
...
Also slightly changes up the cleanup code for SetupWindowData, to avoid copy pasting.
See #10611
2025-01-16 10:20:25 -05:00
SDL Wiki Bot
220a23dad2
Sync SDL2 wiki -> header
...
[ci skip]
2025-01-15 15:27:42 +00:00
Anonymous Maarten
d7825af4de
ci: bump FreeBSD to 14.2
...
[sdl-ci-filter netbsd]
[sdl-ci-filter freebsd]
(cherry picked from commit db97da4ccb
)
2025-01-15 06:20:02 +03:00
Sam Lantinga
91b76f5c29
Fixed potentially overlapping memcpy() to use memmove()
2025-01-14 14:34:29 -08:00
SDL Wiki Bot
aa9b4ec894
Sync SDL2 wiki -> header
...
[ci skip]
2025-01-11 16:25:41 +00:00
Frank Praznik
0efeb82a28
wayland: Only apply the toplevel bounds to resizable windows
2025-01-06 17:20:10 -05:00
Frank Praznik
e5a3fcd071
wayland: Apply toplevel bounds to windows
...
Apply the supplied xdg-toplevel bounds to resizable windows during initial mapping. Libdecor functionality will have to be added separately, as the functionality needs to be added to the library first.
2025-01-06 17:13:16 -05:00
Anonymous Maarten
ebe561f916
Revert "cmake: consider X11 as not available when xext.h is not found"
...
This reverts commit fe5468799b
.
2025-01-06 20:35:09 +01:00
Erica Z
f804293a27
fix integer overflow ub in testautomation_sdltest
...
Patch originally from https://github.com/libsdl-org/sdl2-compat/pull/241
2025-01-06 10:37:46 -05:00
Erica Z
793103ef52
comment out signed multiplication overflow ub in testplatform
...
Patch originally from https://github.com/libsdl-org/sdl2-compat/pull/241
2025-01-06 10:36:32 -05:00
Daniel Tang
db2997548c
Let SDL_IM_MODULE=fcitx override Wayland as a workaround to fix key repetition detection ( #11859 )
2025-01-05 14:34:30 -08:00
Anonymous Maarten
fe5468799b
cmake: consider X11 as not available when xext.h is not found
...
This is user friendlier than straight up erroring
Backport of 16ad3e5af6
2025-01-05 16:06:01 +01:00
Ryan C. Gordon
c9c991b559
test_fuzzer: Patched to compile on Visual Studio.
2025-01-04 01:02:10 -05:00
Ryan C. Gordon
20574c016a
coreaudio: Workaround for crash when disconnecting a bluetooth audio device.
...
Our understanding of what's going on here might be incorrect, but it seems
like we're getting this callback at a point where we shouldn't be able to,
with a device we've already closed.
If we're on the wrong track, this code should still be harmless; it just
verifies a device is still in the open list before dereferencing it.
Reference Issue #10432 .
2025-01-04 00:30:31 -05:00
Anonymous Maarten
1fa217434b
Avoid undefined signed overflow in SDLTest_RandomIntegerInRange
...
Partial backport of efba42a67b
2025-01-04 01:07:40 +01:00
SDL Wiki Bot
9dc8c82082
Sync SDL2 wiki -> header
...
[ci skip]
2025-01-03 13:15:22 +00:00
Joshua Root
6024c2731f
prepare_audioqueue: legacy OS compatibility fix
2025-01-02 14:16:33 -08:00
Joshua Root
d58f026827
windowWillStartLiveResize: legacy OS compatibility fix
2025-01-02 14:16:33 -08:00
Joshua Root
ed0eb7714a
showAlert: legacy OS compatibility fix
2025-01-02 14:16:33 -08:00
Anonymous Maarten
123b967a99
Port back nolibc SDL_strtol implementations from SDL3 to SDL2
2025-01-02 21:46:28 +01:00
Anonymous Maarten
840638404a
testautomation: port back SDL3's strtol and strtod tests
...
Triggered by b713e7581b
2025-01-02 01:31:34 +01:00
Sam Lantinga
adb51845af
Fixed N3DS_TOUCH_ID, 0 is an invalid touch ID
2025-01-01 09:06:23 -08:00
Sam Lantinga
5a25183b39
Revert "Backed out Vita touch ID change for SDL2"
...
This reverts commit a326ebce61
.
It turns out that 0 is an invalid touch ID for SDL2, per the documentation for SDL_GetTouchDevice()
2025-01-01 09:03:24 -08:00
Sam Lantinga
a326ebce61
Backed out Vita touch ID change for SDL2
...
0 is still a valid touch ID in SDL2 and shouldn't be changed at this point
2025-01-01 08:24:31 -08:00
Sam Lantinga
2b5b8fdbd5
Updated copyright for 2025
2025-01-01 07:47:53 -08:00
Sam Lantinga
0efb7c7829
Fixed spacing
2024-12-30 10:05:40 -08:00
Arquimedes
89977d0d16
Update SDLActivity.java
...
Fix Full immersive mode in Android 9 and higher.
LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
will make sure to use all the screen when the fullscreen flag is enabled.
The other option is
LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS will work in some cases but in devices that have a camera in the middle this flag will not work.
2024-12-30 09:56:35 -08:00
Anonymous Maarten
fc608ffb5f
cmake: really disable xrandr by default on Solarir
...
Fixes libsdl-org/SDL#10099
2024-12-28 11:57:03 +01:00
Anonymous Maarten
5ac94b519c
cmake: disable xrandr by default on Solaris
...
Backport of 0be6dc5734
Fixes libsdl-org/SDL#10099
2024-12-28 04:04:31 +01:00
Anonymous Maarten
e02f651c05
cmake: Solaris' SunPro has alternative way to link to pthread libraries
...
Fixes libsdl-org/SDL#10096
(cherry picked from commit 4fbd6cba60
)
2024-12-28 03:46:52 +01:00
Ryan C. Gordon
96b4535cc7
misc: Fixed typo in iOS error message.
2024-12-26 23:36:28 -05:00
Ryan C. Gordon
e55a23050e
misc: Make SDL_OpenURL work with VisionOS, tvOS, etc.
...
(cherry picked from commit 7bbe6025be
)
2024-12-26 23:36:06 -05:00
Ryan C. Gordon
c6e1806ba9
misc: Fix SDL_OpenURL on newer iOS releases.
...
Apparently as of iOS 18.2, the deprecated API we were using just refuses to
work at all.
Fixes #11728 .
(cherry picked from commit ffed1c50c0
)
2024-12-26 23:35:29 -05:00
Sam Lantinga
ddfdb0ca7b
Don't overwrite non-CRC gamepad mapping with a new mapping that specifies a CRC
...
Fixes https://github.com/libsdl-org/SDL/issues/11723
(cherry picked from commit 1413bfb185
)
2024-12-26 20:20:39 -08:00
Sam Lantinga
348bb53cc1
Corrected CoreAudio surround sound channel layouts
...
Fixes https://github.com/libsdl-org/SDL/issues/11709
(cherry picked from commit b2178857dc
)
2024-12-24 15:10:35 -08:00
Blaž Tomažič
e79b0ce2e4
Use pthread_setname_np
also on Android
...
Set thread name on Android the same way as we do on Linux.
Acording to Bionic source code this function is available since 2013 [1] and
hase the same signature.
[1] 2a1bb4e646
2024-12-24 07:40:04 -08:00
Sam Lantinga
884c8b684a
Allow rendering during the modal resize loop on macOS
...
Fixes https://github.com/libsdl-org/SDL/issues/11508
(cherry picked from commit 9a43c08146
)
2024-12-23 11:55:49 -08:00
Wolfywolfy
9491389baf
Remove EXTRA_CFLAGS.
2024-12-20 15:19:09 -08:00
Sam Lantinga
974098464f
Enable high refresh rates on iOS
...
Fixes https://github.com/libsdl-org/SDL/issues/7518
(cherry picked from commit 835b6e0c1a
)
2024-12-18 14:43:33 -08:00
Sam Lantinga
7f880c9121
Fixed crash if the controller product name is NULL
...
This happens when the Razer Synapse software emulates a controller with a keyboard
(cherry picked from commit 7117d545a3
)
2024-12-17 16:54:55 -08:00
Ryan C. Gordon
ad93f50ee6
emscriptenaudio: Removed comment about Firefox not supporting userActivation.
...
It does now, and has since Firefox 120 (around November 2023).
(cherry picked from commit e0cee83a3a
)
2024-12-12 10:52:49 -05:00
Ryan C. Gordon
bc88a43d97
.wikiheaders-option: Filled in quickref metadata.
...
This is still disabled because SDL2's documentation can be spotty at times,
but it's better to have this stuff available in case we ever make some
documentation improvements.
2024-12-12 10:49:36 -05:00
Sam Lantinga
9791069d78
Fixed Chinese locales on PSP (thanks @ccawley2011!)
...
(cherry picked from commit 962268ca21
)
2024-12-10 14:48:14 -08:00
Anonymous Maarten
3c142abcb2
Build optimized stripped MinGW binary releases
2024-12-09 17:21:54 +01:00
Anonymous Maarten
d890d2594a
Add build-release.py updates from satellite libraries
...
Ported from fc2fd42197
[ci skip]
2024-12-08 04:34:44 +01:00
Anonymous Maarten
af94954161
Add test sources to mingw release artifact
2024-12-07 02:05:15 +01:00
Anonymous Maarten
c46bec009b
vc: bump CMake compatibility version of sdl2-config.cmake
2024-12-05 04:30:34 +01:00
Frank Praznik
91bb1bb6fd
wayland: Check the returned display value for null
...
In reality, this condition will never occur, since the index is checked before calling the display retrieval function, but aggressive LTO with jump threading can generate a warning if this isn't explicitly checked.
2024-12-03 11:53:14 -05:00
Sam Lantinga
e539135104
Fixed potential buffer overflow
...
(cherry picked from commit 6aab5a089d
)
2024-12-03 08:34:34 -08:00
Christian Ehrhardt
8d00ca02f1
dynapi: order for a reproducible build
...
The objfiles of different builds show various differences in
the calls to SDL_DYNAPI_entry elements. This is generated
dynamically by gendynapi.pl which uses an unordered opendir/readdir
pair. To make the build reproducible and thereby e.g. debugging
easier change this to be used in an ordered fashion.
Fixes #11565 .
(cherry picked from commit 5418740c4a
)
2024-12-02 09:54:50 -08:00