Brad Smith
a5f445dba1
Use elf_aux_info() on OpenBSD
...
NFC for ARMv7. For PowerPC move elf_aux_info() to higher priority over
sysctl for newer systems.
(cherry picked from commit b299e0de46 )
(cherry picked from commit 641201a99a )
2025-09-27 09:01:58 -07:00
Fierelier
f172ee3d0e
[SDL3] [PS2] Framebuffer resolution + 240p/480p + PAL support ( #13993 )
...
* Do not override NTSC/PAL
* Fix PS2 build instructions
* Add PS2 GS hints
Allows for switching between NTSC/PAL, progressive/interlaced, etc
(cherry picked from commit 3fd0b46215 )
(cherry picked from commit 7b28fb29bd )
2025-09-26 08:26:29 -07:00
Sam Lantinga
7fe49da380
Removed UWP workflow from CI
...
The GitHub runners no longer have the needed SDK for this
(cherry picked from commit ecb72142fd )
2025-09-19 08:34:09 -07:00
krnl32
0efcafc74d
Added a default case to the switch statement in the HEADER FILE to prevent compiler warnings about missing defaults. This change helps avoid compilation breaks when warnings are treated as errors.
...
(cherry picked from commit 9859c05178 )
2025-09-16 17:17:42 -07:00
Ozkan Sezer
dcc72b43ba
fix build.
...
(cherry picked from commit 07c3b3fb7c )
2025-09-15 20:30:20 +03:00
Ozkan Sezer
b8430e4135
SDL_endian.h: don't add _m_prefetch hack for clang-cl if available as a builtin
...
Fixes: https://github.com/libsdl-org/SDL/issues/13952 .
(backport from SDL3 commit 81f2f44843 )
(cherry picked from commit 9343246616 )
2025-09-15 20:11:10 +03:00
Sam Lantinga
394d9bfa1a
Remove Windows 32-bit ARM build from CI
...
This architecture is deprecated and is now failing with:
Windows SDK 10.0.22621.0 : 'C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um' not found or was incomplete
Fixes https://github.com/libsdl-org/SDL/issues/13949
(cherry picked from commit cc3274b6f1 )
(cherry picked from commit b55059b487 )
2025-09-14 18:03:32 -07:00
Sam Lantinga
ecc71c02ea
Only use a transparent cursor on Windows when connected via RDP
...
VMware relies on the cursor being set to NULL to optimize relative mouse motion for games.
We should also revisit whether current RDP works better with a NULL cursor or a transparent cursor.
Fixes https://github.com/libsdl-org/SDL/issues/13700
(cherry picked from commit dac6af4ba6 )
(cherry picked from commit 55b599d693 )
2025-09-14 17:32:38 -07:00
Gianfranco Berardi
60515350ae
Provide Android targetsdk 35 support in SDL2 ( #13776 )
...
(cherry picked from commit be6ab7f9a6 )
2025-09-13 07:19:52 -07:00
Ozkan Sezer
05c9b16183
alsa: fix signature of snd_pcm_info_free
...
Reference issue: https://github.com/libsdl-org/SDL/issues/13845 .
2025-09-02 17:02:28 +03:00
Sam Lantinga
2db8436d8c
Updated to version 2.32.11 for development
2025-09-01 15:12:02 -07:00
Sam Lantinga
5d24957039
Updated to version 2.32.10 for release
release-2.32.10
2025-09-01 14:33:27 -07:00
Ozkan Sezer
fd5dcfba03
openslES: really fix build..
...
(cherry picked from commit d2ab01b8bb )
2025-09-01 20:38:56 +03:00
Ozkan Sezer
5806036c68
openslES: fix build
...
(cherry picked from commit f5246d0181 )
2025-09-01 20:25:50 +03:00
Ryan C. Gordon
9f369a1736
openslES: OpenSL ES on Android only supports two formats, limit to that.
...
(Three with the floating point extension, which we use.)
This is according to:
https://developer.android.com/ndk/guides/audio/opensl/opensl-for-android
Previously, this would accept a request for Sint8 or Sint32 and disaster
would ensue.
Fixes #13779 .
(cherry picked from commit 0b2a003a35 )
(cherry picked from commit 7323104f97 )
(cherry picked from commit b8c802632b )
2025-09-01 11:38:54 -04:00
Ozkan Sezer
1f6e0e3a23
regenerate configure script.
2025-08-31 20:20:50 +03:00
Gleb Mazovetskiy
c8e984701e
configure.ac: Fix AC_DEFINE HAVE_LIBUSB
...
Fixes an error with autoconf 2.72
(cherry picked from commit 5ed21d1ccb )
2025-08-31 09:38:27 -07:00
Ozkan Sezer
2a506c8778
SDL_hidapi.c: fix -Wundef failures due to HAVE_DRIVER_BACKEND check
...
(cherry picked from commit 7a34e14c8e )
2025-08-30 15:47:40 +03:00
Ozkan Sezer
a455f023c2
CI: add OpenBSD workflow
...
(backported from commit c0e5fd55d2 )
(cherry picked from commit 1a8e667f3d )
2025-08-30 15:47:20 +03:00
Frank Praznik
2a10b8c4e7
wayland: Add a sigtimedwait() implementation for OpenBSD
...
sigtimedwait() is an optional part of POSIX.1-2001, and OpenBSD doesn't implement it. Add a replacement implementation based on https://comp.unix.programmer.narkive.com/rEDH0sPT/sigtimedwait-implementation
(backported from commit 1049426a76 )
(cherry picked from commit d31d98d436 )
2025-08-30 15:47:00 +03:00
Ozkan Sezer
f610a3d66b
update config.guess and config.sub from git://git.sv.gnu.org/config.git
...
(cherry picked from commit 56d43ee296 )
2025-08-28 11:25:30 +03:00
Sam Lantinga
54772f345a
Support the "ambient" value for SDL_HINT_AUDIO_CATEGORY
...
Fixes https://github.com/libsdl-org/SDL/issues/13732
(cherry picked from commit 4725213eef )
(cherry picked from commit 5e85a29e75 )
2025-08-12 09:55:27 -07:00
Sam Lantinga
e257904eb3
Revert "autotools, android: Support Google Play 16 KB Page Size Requirement"
...
This reverts commit 9f1cc301a7 .
If you need to support the Google Play 16 kiB page size requirement, the recommendation is to use NDK r28c or newer, which automatically aligns binaries correctly.
2025-08-07 11:37:57 -07:00
Sam Lantinga
cc7a73e727
Revert "Support Google Play 16 KB Page Size Requirement ( #13470 )"
...
This reverts commit e321995244 .
If you need to support the Google Play 16 kiB page size requirement, the recommendation is to use NDK r28c or newer, which automatically aligns binaries correctly.
2025-08-07 11:37:44 -07:00
Ozkan Sezer
9f1cc301a7
autotools, android: Support Google Play 16 KB Page Size Requirement
...
autotools port of commit 4b2aa3f102 .
cherry picked from commit e7489a0931
2025-08-07 20:10:28 +03:00
Anonymous Maarten
e321995244
Support Google Play 16 KB Page Size Requirement ( #13470 )
...
- See: https://developer.android.com/guide/practices/page-sizes#update-packaging
- Also, make min API uniform at 21 (from 16 and 23 in a few places)
Manual backport of dc2c83c383
(cherry picked from commit 4b2aa3f102 )
2025-08-07 18:11:13 +02:00
Ryan C. Gordon
28e9533d34
SDL_enabled_assert(): Use NULL istead of 0 to explicity initialize the pointer members of SDL_AssertData
...
(cherry picked from commit 272b073323 )
2025-08-03 13:41:13 -04:00
Ryan C. Gordon
f9fc36be9e
pipewire: Report correct device default formats instead of hardcoding Float32.
...
The comment in the source wasn't true; PipeWire doesn't _have_ to work in
float format. It presumably does if it has to mix, but if a game is the only
thing making noise on the system--a common scenario--then it might be able to
pass, say, Sint16 data straight through to the hardware without conversion.
Fixes #12129 .
(cherry picked from commit afc1d9122b )
2025-07-29 18:23:33 -04:00
Dan Andrus
f8119d4760
Check NSWindow::isVisible before sending SDL_WINDOWEVENT_RESTORED during Cocoa_WindowListener::windowDidResize
...
(cherry picked from commit e610529e84 )
2025-07-28 11:59:06 -07:00
Ozkan Sezer
1b35c66aa8
sun audio: remove ifdefs, always include sys/audioio.h and sys/ioctl.h
...
(cherry picked from commit ead4a032d3 )
2025-07-28 17:01:20 +03:00
Ozkan Sezer
553ea4e4ee
autotools, cmake: fix the sys/audioio.h checks.
...
Reference issue: https://github.com/libsdl-org/SDL/issues/13405 .
(cherry picked from commit 74df61530f )
2025-07-28 17:01:20 +03:00
Ryan C. Gordon
c438953aa2
sunaudio: don't compile in the sun audio backend if sys/audioio.h is missing.
...
Newer Solaris-based releases, like OpenIndiana, don't include this, using
Open Sound System, or something layered over OSS like PulseAudio, instead.
Fixes #13405 .
(cherry picked from commit cf1eb95fb1 )
2025-07-28 17:01:20 +03:00
Anonymous Maarten
6e77327789
ci+n3ds: avoid apt-get package manager
...
- use Unix Makefiles (with parallelization) CMake generator
- use binutils strings binary from devkitpro
( Manual backport of commit e6d200e51c )
( cherry picked from commit b36252b120 )
2025-07-28 00:10:50 +03:00
vanfanel
e25c61cda8
SDL2: Add missing symbol loading for SDL_GetDefaultAudioInfo() implementation on ALSA.
...
(cherry picked from commit 874ca5a678 )
2025-07-17 11:15:25 -07:00
vanfanel
28f2944947
SDL2: Implement SDL_GetDefaultAudioInfo() on the ALSA backend.
...
(cherry picked from commit 8d5984464e )
2025-07-17 11:15:25 -07:00
Yorick Reum
ab9f59e59a
Xcode-iOS/Demos/src/fireworks.c: Make rendering CPU efficient
...
(cherry picked from commit 6c9c2a9ac2 )
2025-07-12 07:46:36 -07:00
Anonymous Maarten
f99f57ffd1
ci: build MSVC release binary on windows-2025
...
(cherry picked from commit 8605624158 )
2025-07-12 13:08:54 +02:00
Ryan C. Gordon
7f371c7808
cocoa: Patched to compile.
...
(cherry picked from commit b537380065 )
2025-07-11 09:56:20 -07:00
Ryan C. Gordon
d98087a0c3
cocoa: Don't use trick of briefly focusing the Dock on newer macOS releases.
...
On newer systems, the trick isn't necessary, and if you do it, if the user is
moving the mouse when launching the app, it'll show a hidden Dock.
Fixes #10340 .
(manually backported from SDL3 from commit 279dabfc96 )
(cherry picked from commit b2c3e6fade )
2025-07-11 09:56:20 -07:00
Wouter Wijsman
933715fa45
PSP: Truncate thread name when passing to sceKernelCreateThread
...
(cherry picked from commit 309d1481a4 )
2025-07-11 09:56:20 -07:00
Ozkan Sezer
73492c5570
fix ARM64 linkage with Visual Studio >= 17.14 when SDL_LIBC is disabled
...
Reference issue: https://github.com/libsdl-org/SDL/issues/13254
(cherry picked from commit 2fb6abb9ad )
2025-07-09 01:25:19 +03:00
evgenydrainov
19fc5c2953
keyboard: Add reference to SDL_Keymod in the comments
...
(cherry picked from commit 2bc3ec44b1 )
2025-06-24 07:37:01 -07:00
Mitch Cairns
c2a62ee696
Fixed Nintendo Switch thumbstick calibration
...
(cherry picked from commit 3a6f9e01f8 )
(cherry picked from commit e4475d1868 )
2025-06-22 15:29:27 -07:00
Sam Lantinga
c1b8ac9764
Fixed Nintendo Switch Pro thumbstick calibration
...
Fixes https://github.com/libsdl-org/SDL/issues/13246
(cherry picked from commit 038a3806eb )
(cherry picked from commit 6a71328638 )
2025-06-21 20:06:37 -07:00
Wohlstand
7a43692bdf
Vita Render: Limit the scope of cliprect to viewport
...
Don't allow cliprect be larger than viewport's scope
(cherry picked from commit 6701f938f7 )
2025-06-20 13:16:59 -07:00
Wohlstand
99ad0871b1
Vita: Fixed absence of clipping when viewport is set
...
#13034
(cherry picked from commit 1c09a7117a )
2025-06-20 13:16:59 -07:00
ceski
f901079dd5
Read Switch controller gyro/accel sensitivity coeffs (SDL2)
...
These vary by controller, so using the stored values should improve the accuracy of the sensor data.
(cherry picked from commit 9eb50a906a )
2025-06-13 12:19:16 -07:00
Sam Lantinga
98d1f3a45a
Updated to version 2.32.8 for release
release-2.32.8
2025-06-02 16:00:39 -07:00
Ryan C. Gordon
1226e6b2bc
Revert "opengles2: Restore previous default texture_formats."
...
This reverts commit 9f7ccbe8d4 .
Fixes #13109 .
(cherry picked from commit 3c08172d06 )
2025-06-02 09:38:50 -07:00
Francisco Javier Trujillo Mata
213b074697
Fix wrong callback type
...
(cherry picked from commit c89357bf60 )
(cherry picked from commit d0c2d8bc40 )
2025-05-20 11:12:16 -07:00