Anonymous Maarten
e426617c9c
cmake: add X11 include dir to check dirs
2022-11-24 21:00:26 +01:00
Sylvain Becker
192cdf3d04
SDL_mfijoystick.m: remove VLA, so that projects can be built with error on vla
2022-11-24 18:33:50 +03:00
Ozkan Sezer
64a5e7be98
added missing FGREP to Makefile.in. fixed syntax. regenerated configure.
2022-11-24 17:00:20 +03:00
Frank Praznik
66bd15555c
wayland: Fix build when not using the shared Wayland libraries
...
Explicitly include the Wayland protocol headers when statically linking against the Wayland libraries or older system headers might be used instead of the local versions.
(cherry picked from commit 836eb224428aca3bdab2a6bf56d347262e475b15)
2022-11-24 03:01:42 -08:00
Sam James
4c7156c1e6
Avoid use of deprecated egrep/fgrep
...
GNU grep 3.8 emits a deprecation warning on use of egrep/fgrep.
Signed-off-by: Sam James <sam@gentoo.org>
(cherry picked from commit 3e7952ce8a0affd325c802755cae5fd843b86d99)
2022-11-24 02:59:41 -08:00
Joshua Root
33e5de31d8
vulkan_metal.h: Make compatible with ObjC ARC
...
Fixes #6598
(cherry picked from commit 239423e205496997a387b4f265b1cdaf5acd18cb)
2022-11-23 17:39:26 -08:00
Frank Praznik
3eaf56894e
wayland: Fix libdecor_dispatch signature
...
The function returns an int, not a bool.
(cherry picked from commit f47169fcba8a27bb0740b6b4993989ff9262c21f)
2022-11-23 15:17:52 -08:00
Joshua Root
242ce20cbf
SDL_mfijoystick.m: fix build with Xcode < 9
...
Fixes #6601 .
(cherry picked from commit 53ca1f77029289a58f1a9963a00b637b903f494d)
2022-11-23 12:48:26 -08:00
Joshua Root
f52e7199df
Check build-time SDK in LoadMainMenuNibIfAvailable
...
Fixes building against OS X 10.7 SDK.
(cherry picked from commit f8cebeea599ae65f36d388257a9d9a8ed8ada576)
2022-11-23 12:28:43 -08:00
Joshua Root
e12c831b15
SDL_cocoaopengl.h: ensure CVDisplayLinkRef is defined
...
The typedef seems to be pulled in coincidentally with newer SDKs, but
older ones need to import the header explicitly.
(cherry picked from commit d2910904fb4062c313636c7595e971f1bf248075)
2022-11-23 12:22:40 -08:00
Ozkan Sezer
cd399caf6f
fix dynapi after SDL_GDKSuspendComplete addition.
2022-11-23 22:50:10 +03:00
Ciro Mondueri
f6144dfe03
adds GDK suspend/resume basic handling ( #6596 )
2022-11-23 11:41:14 -08:00
SDL Wiki Bot
ac2fcfcb62
Sync SDL2 wiki -> header
2022-11-22 23:21:36 +00:00
Ryan C. Gordon
4ac2d45a06
Testing the wiki, disregard this commit.
2022-11-22 18:12:43 -05:00
Sam Lantinga
dce6ed56d7
Removed G29 from controller_type.c
...
We don't want the G29 to show up as a gamepad, Steam will create a virtual Xbox controller for it, which breaks racing games.
2022-11-22 10:56:44 -08:00
Sam Lantinga
e3d430b83e
Revert "Added Linux mappings for the Logitech G29 in PS3 and PS4 modes"
...
This reverts commit 33a68f575f
.
We don't want the G29 to show up as a gamepad, Steam will create a virtual Xbox controller for it, which breaks racing games.
2022-11-22 10:53:28 -08:00
Ryan C. Gordon
511bab5bbf
.wikiheaders-options: Move SDL2 documentation to a subdirectory.
...
SDL3 will be the main thing now.
2022-11-22 13:05:08 -05:00
Anonymous Maarten
156bf7e6aa
android.mk: LOCAL_EXPORT_C_INCLUDES does not need to add include subfolder
2022-11-22 09:41:23 -08:00
Sam Lantinga
938b720a9e
Update SDL info and Xcode marketing version to 2.27.0
2022-11-22 09:19:21 -08:00
Sam Lantinga
44975d40ef
Update SDL info and Xcode marketing version with version update scripts
2022-11-22 09:18:05 -08:00
Sam Lantinga
ea8f8b6dc3
Updated to version 2.27.0 for development
2022-11-21 16:36:10 -08:00
Sam Lantinga
0bfeed061b
Updated to version 2.26.0 for release
2022-11-21 16:15:58 -08:00
Sam Lantinga
d167cd6715
Added the Gunfighter Mk.III ‘Space Combat Edition’ as a flight stick
2022-11-21 09:02:10 -08:00
Sam Lantinga
8b20b568b0
Don't report battery level for disconnected batteries
...
Fixes https://github.com/libsdl-org/SDL/issues/6536
2022-11-21 07:42:14 -08:00
Sam Lantinga
8ae46a49ea
Save the version in VERSION.txt instead of VERSION
...
Fixes https://github.com/libsdl-org/SDL/issues/6558
2022-11-21 06:57:02 -08:00
Sam Lantinga
802c624ab3
Strip trailing newline when reading the VERSION file
2022-11-20 14:37:05 -08:00
Ozkan Sezer
3bc4bad8fb
add missing strcasestr checks to cmake and autotools build systems,
...
and update config files.
2022-11-20 14:20:33 -08:00
Frank Praznik
fe396e306e
wayland: Use the cached window size when switching from non-floating to floating window state
...
When changing the window state from non-floating to floating (e.g. leaving fullscreen), libdecor can send bogus content sizes that are +/- the height of the window title bar and start 'walking' the window height in one direction or the other with every transition.
The floating window size is known, so use the cached value instead of the size reported by libdecor when restoring the floating state.
2022-11-19 09:15:27 -08:00
Sam Lantinga
509939b1b6
Disable the third party PS3 HIDAPI driver by default, the L3/R3 buttons are unknown
2022-11-18 18:20:53 -08:00
Sam Lantinga
ff99e56d3a
Fixed KMSDRM window creation failing if OpenGL libraries are not available, but GLES 2.0 libraries are
2022-11-18 12:54:55 -08:00
Sam Lantinga
da9ba3a2a1
If a CRTC doesn't have a mode configured, use the preferred or largest mode as the default mode
...
Fixes https://github.com/libsdl-org/SDL/issues/6421
2022-11-18 12:17:27 -08:00
Sam Lantinga
ea4ea27a59
Don't trigger an error if we try to delete a touch device after shutting down the touch system
...
This can happen on Raspberry Pi if the display system fails to initialize.
2022-11-18 11:14:14 -08:00
David Gow
81479d8784
wayland: keyboard: Cache text input parameters.
...
Some applications (and embarrassingly, testime is one of them) call
SDL_StartTextInput() or SDL_SetTextInputRect() every frame. On KDE/KWin
with fcitx5, this causes there to be several preedit events every frame
(particularly given some of the workarounds in Wayland_StartTextInput),
which slows testime down to an unusable crawl.
Instead, make SDL_StartTextInput() a no-op if text input is already
enabled, and cache the input rect, only changing it when the new rect is
actually different.
With these changes, we only get preedit events (and hence
SDL_TEXTEDITING events) when the preedit string actually changes. This
matches the behaviour under XWayland, and works very smoothly.
2022-11-18 07:18:36 -08:00
Ozkan Sezer
6dc96aa745
SDL_UDEV_DelCallback: return early if _this is NULL
...
Fixes https://github.com/libsdl-org/SDL/issues/6548
2022-11-18 18:02:10 +03:00
Sylvain
16824865c2
Cleanup of SDL_SetError that already return -1 value
2022-11-18 06:59:10 -08:00
Sylvain
3e70553c48
Unneed test before calling SDL_FreeSurface
2022-11-18 06:58:34 -08:00
Sam Lantinga
9209942949
Revert "sdl2-config.in: Deprecate sdl2-config"
...
This reverts commit e0d904e90b
.
SDL 3 will have the recommended path forward, we don't need to nag in SDL 2.
2022-11-18 06:53:13 -08:00
Sam Lantinga
769ae185d6
Revert "sdl2.m4: Deprecate AM_PATH_SDL2 in favour of PKG_CHECK_MODULES"
...
This reverts commit a66cb8cf21
.
SDL 3 will have the recommended path forward, we don't need to nag in SDL 2.
2022-11-18 06:52:12 -08:00
Sam Lantinga
78ea6af2cd
Updated to version 2.25.1 for release candidate
2022-11-17 09:01:35 -08:00
Sam Lantinga
1f87e9e24e
Updated patch notes for 2.26 release
2022-11-17 09:00:27 -08:00
Sylvain
71f2864b3a
Fix usage of sizeof() in test/testgles*.c files
2022-11-17 14:55:49 +01:00
Sylvain
89572af6a8
Fixed bug #6537 - AIX: use PAUDIO_WaitDevice
2022-11-17 11:43:46 +01:00
Sylvain
cd0d5a5fc5
Don't compare pointer against '0', but NULL
2022-11-17 11:23:15 +01:00
Sylvain
ddad901c0d
Remove unneeded semicolon
2022-11-17 10:43:45 +01:00
Sylvain
60c6cd554d
Fixed bug #6533 - PS2_JoystickUpdate: some invalid condition
2022-11-17 09:34:27 +01:00
Sylvain
b7358e47d5
Don't compare pointer against '0', but NULL
2022-11-17 09:18:49 +01:00
Sam Lantinga
77bcd269be
Allow creating an empty surface with pitch 0
...
This fixes Maelstrom, which creates an empty staging surface and then uses it for transfer to texture
2022-11-16 22:23:16 -08:00
Ryan C. Gordon
a1702d463c
ibus: Try to use org.freedesktop.portal.IBus first if available.
...
This should fix apps that want ibus support inside sandboxed environments
like FlatPak or Snaps.
Fixes #4706 .
2022-11-16 23:39:41 -05:00
Ryan C. Gordon
bb0b8adacc
mac: Fix handling of deprecated symbol.
...
This needs to check what our deployment target is, not what SDK
is available, since this is a linker symbol and not an enum
value or whatever.
Also removed a copy/paste error that mentioned CoreAudio in
the haptic subsystem.
Fixes #6534 .
2022-11-16 22:04:04 -05:00
Sam Lantinga
913e403f2a
Fixed error message when trying to create an OpenGLES2 renderer on macOS
...
Testing: testsprite2 --renderer opengles2
OpenGLES2 isn't available by default, and we want to see the error "Could not load EGL library"
2022-11-16 18:03:29 -08:00