Commit Graph

12154 Commits

Author SHA1 Message Date
Sam Lantinga
fa24d868ac Updated to version 2.30.11 for release release-2.30.11 2025-01-01 09:09:38 -08:00
Sam Lantinga
c38a40eff9 Fixed N3DS_TOUCH_ID, 0 is an invalid touch ID
(cherry picked from commit adb51845af)
2025-01-01 09:07:08 -08:00
Sam Lantinga
439bb5377c 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()

(cherry picked from commit 5a25183b39)
2025-01-01 09:07:08 -08:00
Sam Lantinga
e38ea9df0c 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

(cherry picked from commit a326ebce61)
2025-01-01 08:25:25 -08:00
Sam Lantinga
6955c981bc Updated copyright for 2025 2025-01-01 07:48:45 -08:00
Blaž Tomažič
fb3bd3b233 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

(cherry picked from commit e79b0ce2e4)
2024-12-27 08:09:03 -08:00
Ryan C. Gordon
847f828e7f misc: Fixed typo in iOS error message.
(cherry picked from commit 96b4535cc7)
2024-12-26 23:39:32 -05:00
Ryan C. Gordon
ec0ba62326 misc: Make SDL_OpenURL work with VisionOS, tvOS, etc.
(cherry picked from commit 7bbe6025be)
(cherry picked from commit e55a23050e)
2024-12-26 23:39:27 -05:00
Ryan C. Gordon
76816a3bfc 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)
(cherry picked from commit c6e1806ba9)
2024-12-26 23:39:23 -05:00
Sam Lantinga
ea873d322a 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)
(cherry picked from commit ddfdb0ca7b)
2024-12-26 20:21:00 -08:00
Sam Lantinga
1c3ad751de Corrected CoreAudio surround sound channel layouts
Fixes https://github.com/libsdl-org/SDL/issues/11709

(cherry picked from commit b2178857dc)
(cherry picked from commit 348bb53cc1)
2024-12-24 15:11:16 -08:00
Sam Lantinga
eccd76a6ac Allow rendering during the modal resize loop on macOS
Fixes https://github.com/libsdl-org/SDL/issues/11508

(cherry picked from commit 9a43c08146)
(cherry picked from commit 884c8b684a)
2024-12-23 11:56:15 -08:00
Wolfywolfy
2e99b6e9ce Remove EXTRA_CFLAGS.
(cherry picked from commit 9491389baf)
2024-12-20 15:19:46 -08:00
Sam Lantinga
e305da0baf Enable high refresh rates on iOS
Fixes https://github.com/libsdl-org/SDL/issues/7518

(cherry picked from commit 835b6e0c1a)
(cherry picked from commit 974098464f)
2024-12-18 14:43:50 -08:00
Sam Lantinga
ca8e33375b 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)
(cherry picked from commit 7f880c9121)
2024-12-17 16:55:36 -08:00
Ryan C. Gordon
4568e64d9e emscriptenaudio: Removed comment about Firefox not supporting userActivation.
It does now, and has since Firefox 120 (around November 2023).

(cherry picked from commit ad93f50ee6)
2024-12-12 10:54:10 -05:00
Sam Lantinga
5b3ce972e0 Fixed Chinese locales on PSP (thanks @ccawley2011!)
(cherry picked from commit 962268ca21)
(cherry picked from commit 9791069d78)
2024-12-10 14:48:31 -08:00
Anonymous Maarten
bf3a264202 Build optimized stripped MinGW binary releases
(cherry picked from commit 3c142abcb2)
2024-12-09 17:22:15 +01:00
Anonymous Maarten
fc2fd42197 Add build-release.py updates from satellite libraries
[ci skip]
2024-12-08 04:32:25 +01:00
Anonymous Maarten
9c821dc21c Add test sources to mingw release artifact release-2.30.10 2024-12-07 02:05:30 +01:00
Sam Lantinga
826c56b67c Updated to version 2.30.10 for release 2024-12-06 14:35:53 -08:00
Anonymous Maarten
f3245a6fed vc: bump CMake compatibility version of sdl2-config.cmake
(cherry picked from commit c46bec009b)
2024-12-05 04:30:54 +01:00
Frank Praznik
43e9c5b247 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.

(cherry picked from commit 91bb1bb6fd)
2024-12-03 11:54:11 -05:00
Sam Lantinga
6d9ab4c984 Fixed potential buffer overflow
(cherry picked from commit 6aab5a089d)
(cherry picked from commit e539135104)
2024-12-03 08:34:49 -08:00
Christian Ehrhardt
5418740c4a 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.
2024-12-02 09:52:30 -08:00
staphen
0251b14be3 Fix order of events in case audio buffer size changes
(cherry picked from commit a4ec0b1531)
2024-11-28 22:29:10 +03:00
Ivan Epifanov
2e43a69a5c Vita: implement mousewheel and buttons 4/5
(cherry picked from commit 6428cee892)
2024-11-27 08:24:08 -08:00
Peter Seiderer
056a4a0960 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
    ccade50587
(cherry picked from commit b64540dd66)
2024-11-27 08:21:58 -08:00
Sam Lantinga
1bb627514d Fixed build
(cherry picked from commit a5da9be5e6)
2024-11-25 05:01:04 +03:00
Starbuck5
1e3465dc99 Speed up full-surface fills
(cherry picked from commit 7a3f5ef129)
(cherry picked from commit 9f07ac8bba)
2024-11-24 17:45:52 -08:00
Anonymous Maarten
2f873636c7 cmake: ios and tvos applications need to link to SDL2main library
Backport of 52090046fe
2024-11-24 00:09:55 +01:00
Anonymous Maarten
cb3e9578e3 GDK: Fix msbuild project for latest Windows GDK desktop release 2024-11-24 00:04:52 +01:00
Anonymous Maarten
eecf3aab80 Fix -Wdeclaration-after-statement warnings
(cherry picked from commit 248cb3ca9c)
2024-11-23 23:45:19 +01:00
Anonymous Maarten
779a6637b2 ci: setup-gdk-desktop needs build-scripts/setup-gdk-desktop.py 2024-11-23 23:42:35 +01:00
Anonymous Maarten
482ff3b911 ci: add setup-gdk-desktop action
backport of 31b3f5ea79
2024-11-23 23:30:38 +01:00
Anonymous Maarten
616923c1b0 cmake: fix building UWP with non-MSVC generator
(cherry picked from commit 7fb8b62a4d)
2024-11-23 23:28:29 +01:00
Anonymous Maarten
c57874fde0 ci: fix clang-cl job 2024-11-23 23:02:06 +01:00
Anonymous Maarten
9eebee9ff0 Fixup 'ci: merge all workflows' 2024-11-23 22:40:00 +01:00
Anonymous Maarten
bc8a1fd7d5 ci: merge all workflows
(cherry picked from commit ba433e4a5d)
2024-11-23 20:19:33 +01:00
Anonymous Maarten
01dee787c1 ci: pin Windows SDK version to 10.0.22621.0 for Windows on 32-bit ARM 2024-11-22 22:12:35 +01:00
Anonymous Maarten
eedf76f8ed ci: don't do 'brew install pkg-config' anymore
Assume it is installed by default
2024-11-22 21:47:35 +01:00
Wouter Wijsman
dccd23e6fb PSP: Add locale support
(cherry picked from commit f39c5cf989)
2024-11-22 08:38:31 -08:00
Anonymous Maarten
7217771458 cmake: Compatibility with CMake < 3.10 will be removed in a future CMake version 2024-11-17 21:56:09 +01:00
Ozkan Sezer
3ee780ce9c build system: disable 3dNow! support by default
Closes: https://github.com/libsdl-org/SDL/issues/11472.
(cherry picked from commit 51570d9257)
2024-11-17 17:55:32 +03:00
jimtahu
bee8874629 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
2024-11-15 14:03:42 -08:00
rsn8887
11ffdd3abc SDL_vitatouch.c: re-enable front touch on Vita
(cherry picked from commit 6dcf75710c)
2024-11-15 10:15:10 -08:00
Zack Middleton
6f859d90f1 Fix SDL_PRIs64 to use standard PRId64
PRIs64 doesn't exist in C standards.

(cherry picked from commit 8a2cac7aaa)
(cherry picked from commit 761ea32b74)
2024-11-15 10:15:10 -08:00
Ryan C. Gordon
96f4421e5f audio: Favor OpenSL ES over AAudio.
There are low-latency fixes in SDL3 that really need to be backported to SDL2
before AAudio will be nicer across a range of devices, so OpenSL ES is safer
in SDL2 at the moment. At least, we suspect as such.

Fixes #11457.

(cherry picked from commit 17b9ed7d82)
2024-11-13 18:25:47 -05:00
Sam Lantinga
ad602924a4 Support multiple joystick buttons bound to the same gamepad button
(cherry picked from commit ed943318e2)
(cherry picked from commit 74ff82f4a2)
2024-11-05 11:52:07 -08:00
Anonymous Maarten
9eca707549 cmake: releases have a REVISION.txt instead of VERSION.txt 2024-11-04 19:20:23 +01:00