- Update to release 2.24.0
OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=129
This commit is contained in:
parent
42a8be64a8
commit
c7b5f37b8a
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:fe7cbf3127882e3fc7259a75a0cb585620272c51745d3852ab9dd87960697f2e
|
|
||||||
size 7250633
|
|
Binary file not shown.
3
SDL2-2.24.0.tar.gz
Normal file
3
SDL2-2.24.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:91e4c34b1768f92d399b078e171448c6af18cafda743987ed2064a28954d6d97
|
||||||
|
size 7520541
|
BIN
SDL2-2.24.0.tar.gz.sig
Normal file
BIN
SDL2-2.24.0.tar.gz.sig
Normal file
Binary file not shown.
15
SDL2.changes
15
SDL2.changes
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 19 16:25:00 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Update to release 2.24.0
|
||||||
|
* Added a number of function relating to input devices such as
|
||||||
|
keyboard and joystick.
|
||||||
|
* Added support for the NVIDIA Shield Controller to the HIDAPI
|
||||||
|
driver, supporting rumble and battery status
|
||||||
|
* Added support for opening audio devices with 3 or 5 channels
|
||||||
|
(2.1, 4.1). All channel counts from Mono to 7.1 are now
|
||||||
|
supported.
|
||||||
|
- Drop baselibs.conf (no SDL2_ttf-dependent Tumbleweed packages
|
||||||
|
themselves have baselibs).
|
||||||
|
- Drop fix-xi2-crash.patch (merged)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 5 09:16:41 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
Tue Jul 5 09:16:41 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
%define sle_version 0
|
%define sle_version 0
|
||||||
Name: SDL2
|
Name: SDL2
|
||||||
%define lname libSDL2-2_0-0
|
%define lname libSDL2-2_0-0
|
||||||
Version: 2.0.22
|
Version: 2.24.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Simple DirectMedia Layer Library
|
Summary: Simple DirectMedia Layer Library
|
||||||
License: Zlib
|
License: Zlib
|
||||||
@ -33,7 +33,6 @@ Source3: %name.keyring
|
|||||||
Source4: baselibs.conf
|
Source4: baselibs.conf
|
||||||
Patch1: sdl2-symvers.patch
|
Patch1: sdl2-symvers.patch
|
||||||
Patch2: sdl2-khronos.patch
|
Patch2: sdl2-khronos.patch
|
||||||
Patch3: fix-xi2-crash.patch
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: nasm
|
BuildRequires: nasm
|
||||||
|
@ -1,67 +0,0 @@
|
|||||||
From fdb86b8266947e225f058b32ebb77fa949f6ae42 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Ryan C. Gordon" <icculus@icculus.org>
|
|
||||||
Date: Mon, 4 Jul 2022 12:48:32 -0400
|
|
||||||
Subject: [PATCH] x11: Don't try to use XInput2 multitouch if not supported.
|
|
||||||
|
|
||||||
Fixes #5889.
|
|
||||||
---
|
|
||||||
src/video/x11/SDL_x11touch.c | 4 +---
|
|
||||||
src/video/x11/SDL_x11xinput2.c | 13 +++++++++++++
|
|
||||||
2 files changed, 14 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/video/x11/SDL_x11touch.c b/src/video/x11/SDL_x11touch.c
|
|
||||||
index 958bee9df..c608cf24d 100644
|
|
||||||
--- a/src/video/x11/SDL_x11touch.c
|
|
||||||
+++ b/src/video/x11/SDL_x11touch.c
|
|
||||||
@@ -31,9 +31,7 @@
|
|
||||||
void
|
|
||||||
X11_InitTouch(_THIS)
|
|
||||||
{
|
|
||||||
- if (X11_Xinput2IsMultitouchSupported()) {
|
|
||||||
- X11_InitXinput2Multitouch(_this);
|
|
||||||
- }
|
|
||||||
+ X11_InitXinput2Multitouch(_this);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
diff --git a/src/video/x11/SDL_x11xinput2.c b/src/video/x11/SDL_x11xinput2.c
|
|
||||||
index abfbdf0e3..21d8bd6c1 100644
|
|
||||||
--- a/src/video/x11/SDL_x11xinput2.c
|
|
||||||
+++ b/src/video/x11/SDL_x11xinput2.c
|
|
||||||
@@ -265,6 +265,11 @@ X11_InitXinput2Multitouch(_THIS)
|
|
||||||
SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
|
|
||||||
XIDeviceInfo *info;
|
|
||||||
int ndevices,i,j;
|
|
||||||
+
|
|
||||||
+ if (!X11_Xinput2IsMultitouchSupported()) {
|
|
||||||
+ return;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
info = X11_XIQueryDevice(data->display, XIAllDevices, &ndevices);
|
|
||||||
|
|
||||||
for (i = 0; i < ndevices; i++) {
|
|
||||||
@@ -354,6 +359,10 @@ X11_Xinput2GrabTouch(_THIS, SDL_Window *window)
|
|
||||||
XIGrabModifiers mods;
|
|
||||||
XIEventMask eventmask;
|
|
||||||
|
|
||||||
+ if (!X11_Xinput2IsMultitouchSupported()) {
|
|
||||||
+ return;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
mods.modifiers = XIAnyModifier;
|
|
||||||
mods.status = 0;
|
|
||||||
|
|
||||||
@@ -379,6 +388,10 @@ X11_Xinput2UngrabTouch(_THIS, SDL_Window *window)
|
|
||||||
|
|
||||||
XIGrabModifiers mods;
|
|
||||||
|
|
||||||
+ if (!X11_Xinput2IsMultitouchSupported()) {
|
|
||||||
+ return;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
mods.modifiers = XIAnyModifier;
|
|
||||||
mods.status = 0;
|
|
||||||
|
|
||||||
--
|
|
||||||
2.36.1
|
|
||||||
|
|
@ -36,7 +36,7 @@ Index: SDL2-2.0.22/sdl2.sym
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ SDL2-2.0.22/sdl2.sym
|
+++ SDL2-2.0.22/sdl2.sym
|
||||||
@@ -0,0 +1,278 @@
|
@@ -0,0 +1,306 @@
|
||||||
+SUSE_2.0.5 {
|
+SUSE_2.0.5 {
|
||||||
+global:
|
+global:
|
||||||
+ SDL_DequeueAudio;
|
+ SDL_DequeueAudio;
|
||||||
@ -315,3 +315,31 @@ Index: SDL2-2.0.22/sdl2.sym
|
|||||||
+ SDL_AndroidSendMessage;
|
+ SDL_AndroidSendMessage;
|
||||||
+ SDL_GetTouchName;
|
+ SDL_GetTouchName;
|
||||||
+} SUSE_2.0.18;
|
+} SUSE_2.0.18;
|
||||||
|
+SUSE_2.24.0 {
|
||||||
|
+ SDL_GetDefaultAudioInfo;
|
||||||
|
+ SDL_HasLSX;
|
||||||
|
+ SDL_HasLASX;
|
||||||
|
+ SDL_GameControllerPathForIndex;
|
||||||
|
+ SDL_GameControllerPath;
|
||||||
|
+ SDL_GameControllerGetFirmwareVersion;
|
||||||
|
+ SDL_GUIDToString;
|
||||||
|
+ SDL_GUIDFromString;
|
||||||
|
+ SDL_ResetHint;
|
||||||
|
+ SDL_JoystickPathForIndex;
|
||||||
|
+ SDL_JoystickAttachVirtualEx;
|
||||||
|
+ SDL_JoystickPath;
|
||||||
|
+ SDL_JoystickGetFirmwareVersion;
|
||||||
|
+ SDL_ResetKeyboard;
|
||||||
|
+ SDL_SetTextInputRect;
|
||||||
|
+ SDL_GDKRunApp;
|
||||||
|
+ SDL_GetOriginalMemoryFunctions;
|
||||||
|
+ SDL_qsort;
|
||||||
|
+ SDL_bsearch;
|
||||||
|
+ SDL_crc16;
|
||||||
|
+ SDL_utf8strnlen;
|
||||||
|
+ SDL_RenderGetD3D12Device;
|
||||||
|
+ SDL_iPhoneSetAnimationCallback;
|
||||||
|
+ SDL_GDKGetTaskQueue;
|
||||||
|
+ SDL_GetPointDisplayIndex;
|
||||||
|
+ SDL_GetRectDisplayIndex;
|
||||||
|
+} SUSE_2.0.22;
|
||||||
|
Loading…
Reference in New Issue
Block a user