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
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
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
...
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
Triggered by b713e7581b
2025-01-02 01:31:34 +01:00
Sam Lantinga
adb51845af
Fixed N3DS_TOUCH_ID, 0 is an invalid touch ID
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
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
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
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
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
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] https://android.googlesource.com/platform/bionic/+/2a1bb4e64677b9abbc17173c79768ed494565047
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
staphen
a4ec0b1531
Fix order of events in case audio buffer size changes
2024-11-28 22:28:24 +03:00
Ivan Epifanov
6428cee892
Vita: implement mousewheel and buttons 4/5
2024-11-27 08:23:40 -08:00
Peter Seiderer
b64540dd66
DirectFB: fix DirectFB_SetTextureScaleMode() declaration
...
Fixes:
src/video/directfb/SDL_DirectFB_render.c: In function ‘DirectFB_CreateRenderer’:
src/video/directfb/SDL_DirectFB_render.c:1153:35: error: assignment to ‘void (*)(SDL_Renderer *, SDL_Texture *, SDL_ScaleMode)’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
1153 | renderer->SetTextureScaleMode = DirectFB_SetTextureScaleMode;
| ^
Signed-off-by: Peter Seiderer <ps.report@gmx.net >
---
Notes:
- declaration was just recently changed by commit 'Fix warning for Android
NDK compiler: "function declaration without a prototype is deprecated in
all versions of C [-Wstrict-prototypes]"', see
https://github.com/libsdl-org/SDL/commit/ccade505879333267c8d6d38cb9c0535596f4648
2024-11-27 08:21:10 -08:00
Sam Lantinga
a5da9be5e6
Fixed build
2024-11-24 17:54:55 -08:00
Starbuck5
9f07ac8bba
Speed up full-surface fills
...
(cherry picked from commit 7a3f5ef129 )
2024-11-24 17:45:24 -08:00
Anonymous Maarten
ba433e4a5d
ci: merge all workflows
2024-11-23 20:00:37 +01:00
Anonymous Maarten
dface78331
ci: don't do 'brew install pkg-config' anymore
...
Assume it is installed by default
2024-11-22 21:47:15 +01:00
Wouter Wijsman
f39c5cf989
PSP: Add locale support
2024-11-22 08:37:39 -08:00
Alibek Omarov
f9c50e1bf7
Add proguard rules for SDL2
...
Based on existing work by @AntTheAlchemist on SDL3 branch.
2024-11-20 10:13:53 -08:00
Anonymous Maarten
e924f12a7b
cmake: Compatibility with CMake < 3.10 will be removed in a future CMake version
2024-11-17 21:53:32 +01:00
Anonymous Maarten
c672c0e80f
ci: pin MSVC ARM Windows SDK version to 10.0.22621.0
2024-11-17 21:33:53 +01:00
Ozkan Sezer
51570d9257
build system: disable 3dNow! support by default
...
Closes: https://github.com/libsdl-org/SDL/issues/11472 .
2024-11-17 17:55:32 +03:00
jimtahu
d1af211010
Always Use Next Display Index
...
WIN_AddDisplay asserted that the returned index is the expected next
one in the list. This can be an unexpected number when displays are
add and removed in a batch (eg, Remote Desktop disconnect and reconnect).
Instead always just make use of the next index, even if it is not the
expected next index value. This fixes issue #9105
(cherry picked from commit bee8874629 )
2024-11-15 14:35:55 -08:00
rsn8887
6dcf75710c
SDL_vitatouch.c: re-enable front touch on Vita
2024-11-15 10:13:35 -08:00