Commit Graph

12142 Commits

Author SHA1 Message Date
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 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
Anonymous Maarten 4fc47a774f port build-script from SDL3
[ci skip]
2024-11-02 02:19:50 +01:00
Sam Lantinga c98c4fbff6 Updated to version 2.30.9 for release 2024-11-01 14:24:51 -07:00
Sam Lantinga 4d4f004968 Fixed the PS5 controller face buttons on Amazon Fire TV, Android 11
(cherry picked from commit 09495059df)
(cherry picked from commit 3b7a45853c)
2024-10-30 05:24:08 -07:00
Sam Lantinga 5d7a023430 Revert "aaudio: Set low-latency audio mode."
This reverts commit 1e016fd5ea.

In order to use low latency mode, you need to set low latency callbacks. This has always been recommended and is apparently required on Android 15. SDL3 has these implemented correctly but SDL2 does not, so we should revert this for now.

Fixes https://github.com/libsdl-org/SDL/issues/11376

(cherry picked from commit d2b9ecd281)
2024-10-29 22:36:54 -07:00
dv-senna 3e272e73d6 SDL_vulkan.h: undefine VK_DEFINE_HANDLER and VK_DEFINE_NON_DISPATCHABLE_HANDLE
Allows including vulkan.hpp in user code in C++ before SDL_vulkan.h w/o errors.
Fixes:  https://github.com/libsdl-org/SDL/issues/11328 .

(cherry picked from commit 149ecffd6f)
(cherry picked from commit 478dff3585)
2024-10-29 22:36:24 -07:00
Ryan C. Gordon cc2352f842 wasapi: Deal with device buffer sizes changing.
Otherwise, it would fill the previous size's worth of data into the current
size's buffer.

Fixes #11122.

(cherry picked from commit 5b0e838a74)
2024-10-29 22:36:19 -07:00
Ryan C. Gordon f170ced2a7
cocoa: Patched to compile.
(cherry picked from commit e5348c611d)
2024-10-25 10:23:36 -04:00
Ryan C. Gordon dcdb763de8
cocoa: Make sure GL context destruction happens on the main thread.
Fixes #10900.

(cherry picked from commit 5cb87ff99f)
2024-10-25 10:17:47 -04:00
Ryan C. Gordon 5c9f37080e
emscripten: scale mousewheel X coordinates correctly, not just Y coordinates.
Fixes #10454.

(cherry picked from commit 00f15dd215)
2024-10-23 23:41:10 -04:00
Ivan Epifanov 257d75429d VITA: fix SDL_ShowMessageBox by using different memory type
(cherry picked from commit 52714d5063)
2024-10-22 12:22:20 -07:00
Frank Praznik c1adfb4c94
wayland: Always create a viewport for the window if available
Viewports decouple the buffer from the window size and avoids the window geometry hacks used to prevent problems if a buffer with an old size in the pipeline ends up being committed.

Fixes an invalid geometry warning and incorrect overview size for fullscreen windows on GNOME, and avoids flicker when entering/exiting fullscreen or moving the window between scaled and non-scaled displays.

(cherry picked from commit 849c905d8c)
2024-10-21 15:22:24 -04:00
Ivan Epifanov 217bc17a21 VITA: fix yuv texture update
(cherry picked from commit 86fd4ed83c)
2024-10-17 07:54:41 -07:00