[sdl2] Update to 2.30.7 (#40843)

This commit is contained in:
Oleg Derevenetz 2024-09-10 06:29:05 +03:00 committed by GitHub
parent 28698a91eb
commit 274247e637
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 19 deletions

View File

@ -1,13 +0,0 @@
diff --git a/src/sensor/android/SDL_androidsensor.c b/src/sensor/android/SDL_androidsensor.c
index 3f57253cd..c06faf2ee 100644
--- a/src/sensor/android/SDL_androidsensor.c
+++ b/src/sensor/android/SDL_androidsensor.c
@@ -161,7 +161,7 @@ static void SDL_ANDROID_SensorUpdate(SDL_Sensor *sensor)
ASensorEvent event;
struct android_poll_source *source;
- if (ALooper_pollAll(0, NULL, &events, (void **)&source) == LOOPER_ID_USER) {
+ if (ALooper_pollOnce(0, NULL, &events, (void **)&source) == LOOPER_ID_USER) {
SDL_zero(event);
while (ASensorEventQueue_getEvents(sensor->hwdata->eventqueue, &event, 1) > 0) {
SDL_PrivateSensorUpdate(sensor, 0, event.data, SDL_arraysize(event.data));

View File

@ -2,13 +2,12 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO libsdl-org/SDL
REF "release-${VERSION}"
SHA512 3c9486cc42baae1b97f3fcc38fb2ee54071236c588bf33d1140502b1b5b05cec18bb5d11c4bbf66ca055b561cd28dfb294ccca55d44e1561df9d6c6cfc530194
SHA512 65c972098cbe3a7dede6ba106c6678502b10ad93d2f1a980cc997a1facc11b211bc564ad4ef810248cc63e01a9adc6de23699a245cdaa8df89c7fb2d70c29a5e
HEAD_REF main
PATCHES
deps.patch
alsa-dep-fix.patch
cxx-linkage-pkgconfig.diff
poll-fix.patch # Remove with next version (2.30.7).
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SDL_STATIC)

View File

@ -1,7 +1,6 @@
{
"name": "sdl2",
"version": "2.30.6",
"port-version": 2,
"version": "2.30.7",
"description": "Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.",
"homepage": "https://www.libsdl.org/download-2.0.php",
"license": "Zlib",

View File

@ -8117,8 +8117,8 @@
"port-version": 6
},
"sdl2": {
"baseline": "2.30.6",
"port-version": 2
"baseline": "2.30.7",
"port-version": 0
},
"sdl2-gfx": {
"baseline": "1.0.4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "bb45dd91a3494bfe75458c6ad2233e501367791e",
"version": "2.30.7",
"port-version": 0
},
{
"git-tree": "5d52d326d6f43ce1c7481188402e8c2828bbb369",
"version": "2.30.6",