Log

Author Commit Date CI Message
Sam Lantinga 4504c10f 2022-11-30T16:37:20 Re-enabled support for third party PS3 controllers
Sam Lantinga 7b100001 2022-11-30T15:51:17 Reverted code formatting for Apple platforms We didn't get the merge right, and rather than tease out exactly what happened, I'm just reverting for now.
Sam Lantinga 9e997cc7 2022-11-30T15:39:10 Fixed Victrix FS Pro V2 controller hang on reboot
Sam Lantinga d87048fd 2022-11-30T14:37:34 Fixed crash if GetRectDisplayIndex() is called before SDL_VideoInit()
Sam Lantinga 6926d046 2022-11-30T13:05:57 Fixed build after cherry-pick of 5750bcb174300011b91d1de20edb288fcca70f8c from SDL3
Sam Lantinga b8d85c69 2022-11-30T12:51:59 Update for SDL3 coding style (#6717) I updated .clang-format and ran clang-format 14 over the src and test directories to standardize the code base. In general I let clang-format have it's way, and added markup to prevent formatting of code that would break or be completely unreadable if formatted. The script I ran for the src directory is added as build-scripts/clang-format-src.sh This fixes: #6592 #6593 #6594 (cherry picked from commit 5750bcb174300011b91d1de20edb288fcca70f8c)
Sam Lantinga 5c4bc807 2022-11-30T05:59:56 Revert "SDL_test_md5.h: fix MD5UINT4 type to be really 32 bits." This reverts commit 8eeca8c7db323d82ec257db9886e2ba16c0c892a as it's potentially an ABI break.
Ozkan Sezer 8eeca8c7 2022-11-29T08:56:32 SDL_test_md5.h: fix MD5UINT4 type to be really 32 bits. (cherry picked from commit 8901297437ed9ced67e6029a1d525e8052275b7c)
David Edmundson d7664a6e 2022-07-11T19:28:37 Support wayland fractional scale protocol The new protocol adds support for more native communication of fractional scaling. Everything in the wayland backend already existed only our fractional scale was calculated implicitly through a combination of output size guesswork for fullscreen windows. This new protocol makes that explicit, providing a more robust solution and a solution for non-fullscreen surfaces. The fallback code is still left in place for now whilst compositors gain support.
Anonymous Maarten 5df10660 2022-11-29T17:48:45 cmake: move platform detection to cmake/sdl/paltform.cmake for re-use by SDL2-compat
Ryan C. Gordon 69f02234 2022-11-29T14:13:02 dynapi: Abstract out the environment variable name. (cherry picked from commit cc487ffb801f862aec7e2b415e74c563c4d528d5)
pionere 72484511 2022-11-29T18:43:36 video: fix error messages - do not overwrite error message set by SDL_InitFormat (SDL_AllocFormat) - set proper error message (Cocoa_Metal_CreateView) - protect against allocation failure (UIKit_Metal_CreateView) (cherry picked from commit cf0cb44df88a4293805fdc926880155d58a46bea)
Anonymous Maarten 84039e25 2022-11-29T17:47:30 cmake: use target_link_libraries to pass -Wl,--undefined=WinMain (cherry-picked from commit e2060de714481ed58b6a2e781f7439090003a7b4)
Sam Lantinga 2d24baaa 2022-11-29T09:26:29 Fixed building on Windows with SDL_VIDEO=OFF Fixes https://github.com/libsdl-org/SDL/issues/6562
Sam Lantinga b7cc4dce 2022-11-29T08:50:51 Fixed bug #6698 - VISA: wrong check sceKernelPollSema (cherry picked from commit f077c691930f70a2e826eb40cbd0e35a7465a4af)
pionere 0b7a9a8e 2022-11-29T17:30:03 thread: code style (cherry picked from commit 461a38ff1af1d749426c8e2c6f2a56e2b31c1a45)
Sylvain 8cda5102 2022-11-29T16:14:23 Fixed bug #6698 - VISA: wrong check sceKernelPollSema
pionere ee13e8c7 2022-11-29T09:46:20 thread: return -1 from SDL_SemWaitTimeout if semaphore is NULL (cherry picked from commit f6db1aba664079e63df44cbb6e6925a088b8f3a8)
pionere fcd7d658 2022-11-29T11:18:30 thread: fix inconsistent return values - SDL_CreateMutex returns NULL when the creation fails (ngage) - SDL_SemValue returns 0 when the semaphore is NULL (n3ds) (cherry picked from commit 6875e1c262ae968a4fb52b367cf6912d9c76d4c9)
Sam Lantinga 89e9f7b4 2022-11-28T23:10:02 Added support for the Xbox Elite controller paddles with firmware version 5.13+
Vasily Khoruzhick b6c875a9 2022-11-28T17:01:16 Add support for the 8BitDo Ultimate Wireless 2.4GHz Controller in DirectInput mode Generated using controller map
Samuel Venable a65d1bfb 2022-11-28T18:37:34 Fix broken solaris build. (missing brace). missing brace.
Sam Lantinga 37d244ea 2022-11-28T14:48:32 Added support for the 8BitDo Ultimate Wired Controller in DirectInput mode, including the misc button and paddles
Sam Lantinga a937b5c4 2022-11-28T13:47:30 Add 8BitDo to the list of Xbox 360 third party vendors Allows detection of the 8BitDo Ultimate Wired Controller
Sylvain Becker fb0ce375 2022-11-27T17:38:43 Cleanup add brace (#6545) * Add braces after if conditions * More add braces after if conditions * Add braces after while() conditions * Fix compilation because of macro being modified * Add braces to for loop * Add braces after if/goto * Move comments up * Remove extra () in the 'return ...;' statements * More remove extra () in the 'return ...;' statements * More remove extra () in the 'return ...;' statements after merge * Fix inconsistent patterns are xxx == NULL vs !xxx * More "{}" for "if() break;" and "if() continue;" * More "{}" after if() short statement * More "{}" after "if () return;" statement * More fix inconsistent patterns are xxx == NULL vs !xxx * Revert some modificaion on SDL_RLEaccel.c * SDL_RLEaccel: no short statement * Cleanup 'if' where the bracket is in a new line * Cleanup 'while' where the bracket is in a new line * Cleanup 'for' where the bracket is in a new line * Cleanup 'else' where the bracket is in a new line (cherry picked from commit 6a2200823c66e53bd3cda4a25f0206b834392652 to reduce conflicts merging between SDL2 and SDL3)
Samuel Venable 0739d237 2022-11-27T21:19:41 [skip ci] Solaris getexecname() returns argv[0] `argv[0]`/`getexexname()` are not always absolute paths by default and can be modified to anything the developer wants them to be. Consider using `readSymLink("/proc/self/path/a.out")` instead and `getexecname()` as the fallback, since the symlink will always be the correct absolute path (unless /proc is ot mounted, but it is by default on Solaris and Illumos platforms). (cherry picked from commit 4f5e9fd5bda0d58c2907f75fa4ea0c92c3a2525f)
Markus Mittendrein 81452121 2022-11-27T22:46:54 SDL_ResampleAudio: Fix float accumulation error While 78f97108f9dad22db6708f28322561eb9828fc36 reduced the accumulation error, it was still big enough to cause distortions. Fixes #6196.
Joshua Root 2df39e64 2022-11-27T11:27:19 Fix build with Xcode < 7 The _Nullable attribute is not available in older versions. (cherry picked from commit 9a64aa6f95298bf459f8b9dca583df7064956cd9)
Sam Lantinga 8fddf146 2022-11-26T13:09:50 Temporary hack to address performance issues in https://github.com/libsdl-org/SDL/issues/6581#issuecomment-1327987916 (thanks @icculus!) (cherry picked from commit 9c8369e097b229997875c0aeb4dc9cfdcde0e2b2)
Ryan C. Gordon 3f5593d6 2022-11-26T13:57:12 cocoa: Patched to compile on macOS SDK < 10.10. Fixes #6586. (cherry picked from commit fa5adcafd52303fde86c64094462303404259d75)
Anonymous Maarten dcd12523 2022-11-25T02:18:16 cmake: test for lsx and lasx intrinsics for loongarch
Anonymous Maarten edb75bc2 2022-11-25T01:27:44 cmake: make all assembly options depend on SDL_ASSEMBLY and architecture
Anonymous Maarten 660cec69 2022-11-25T02:57:00 cmake: find libudev library so it gets priority
Anonymous Maarten a2611edc 2022-11-25T02:39:50 cmake: add support for some BSD's wscons input
Michael Fitzmayer e19c532e 2022-11-24T21:53:17 Add bitdraw.h, remove non-working stub class (cherry picked from commit 67f31a19a8eb06ee80bccb9ec8cc8c34aa635b3d)
Anonymous Maarten e426617c 2022-11-24T20:39:55 cmake: add X11 include dir to check dirs
Sylvain Becker 192cdf3d 2022-11-24T16:07:03 SDL_mfijoystick.m: remove VLA, so that projects can be built with error on vla
Ozkan Sezer 64a5e7be 2022-11-24T17:00:20 added missing FGREP to Makefile.in. fixed syntax. regenerated configure.
Frank Praznik 66bd1555 2022-11-23T23:11:25 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)
Sam James 4c7156c1 2022-11-24T05:21:21 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)
Joshua Root 33e5de31 2022-11-24T11:06:37 vulkan_metal.h: Make compatible with ObjC ARC Fixes #6598 (cherry picked from commit 239423e205496997a387b4f265b1cdaf5acd18cb)
Frank Praznik 3eaf5689 2022-11-23T18:11:50 wayland: Fix libdecor_dispatch signature The function returns an int, not a bool. (cherry picked from commit f47169fcba8a27bb0740b6b4993989ff9262c21f)
Joshua Root 242ce20c 2022-11-24T07:37:36 SDL_mfijoystick.m: fix build with Xcode < 9 Fixes #6601. (cherry picked from commit 53ca1f77029289a58f1a9963a00b637b903f494d)
Joshua Root f52e7199 2022-08-28T00:52:19 Check build-time SDK in LoadMainMenuNibIfAvailable Fixes building against OS X 10.7 SDK. (cherry picked from commit f8cebeea599ae65f36d388257a9d9a8ed8ada576)
Joshua Root e12c831b 2022-11-24T06:32:49 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)
Ozkan Sezer cd399caf 2022-11-23T22:50:10 fix dynapi after SDL_GDKSuspendComplete addition.
Ciro Mondueri f6144dfe 2022-11-23T16:41:14 adds GDK suspend/resume basic handling (#6596)
SDL Wiki Bot ac2fcfcb 2022-11-22T23:21:36 Sync SDL2 wiki -> header
Ryan C. Gordon 4ac2d45a 2022-11-22T18:12:43 Testing the wiki, disregard this commit.
Sam Lantinga dce6ed56 2022-11-22T10:56:44 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.
Sam Lantinga e3d430b8 2022-11-22T10:53:28 Revert "Added Linux mappings for the Logitech G29 in PS3 and PS4 modes" This reverts commit 33a68f575f484723aa326f8a2d96f2b8a084da4a. 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.
Ryan C. Gordon 511bab5b 2022-11-22T13:05:08 .wikiheaders-options: Move SDL2 documentation to a subdirectory. SDL3 will be the main thing now.
Anonymous Maarten 156bf7e6 2022-11-22T18:35:49 android.mk: LOCAL_EXPORT_C_INCLUDES does not need to add include subfolder
Sam Lantinga 938b720a 2022-11-22T09:19:21 Update SDL info and Xcode marketing version to 2.27.0
Sam Lantinga 44975d40 2022-11-22T09:18:05 Update SDL info and Xcode marketing version with version update scripts
Sam Lantinga ea8f8b6d 2022-11-21T16:36:10 Updated to version 2.27.0 for development
Sam Lantinga 0bfeed06 2022-11-21T16:15:58 Updated to version 2.26.0 for release
Sam Lantinga d167cd67 2022-11-21T09:02:10 Added the Gunfighter Mk.III ‘Space Combat Edition’ as a flight stick
Sam Lantinga 8b20b568 2022-11-21T07:41:35 Don't report battery level for disconnected batteries Fixes https://github.com/libsdl-org/SDL/issues/6536
Sam Lantinga 8ae46a49 2022-11-21T06:57:02 Save the version in VERSION.txt instead of VERSION Fixes https://github.com/libsdl-org/SDL/issues/6558
Sam Lantinga 802c624a 2022-11-20T14:37:05 Strip trailing newline when reading the VERSION file
Ozkan Sezer 3bc4bad8 2022-11-20T23:50:10 add missing strcasestr checks to cmake and autotools build systems, and update config files.
Frank Praznik fe396e30 2022-11-19T11:28:31 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.
Sam Lantinga 509939b1 2022-11-18T18:20:53 Disable the third party PS3 HIDAPI driver by default, the L3/R3 buttons are unknown
Sam Lantinga ff99e56d 2022-11-18T12:54:55 Fixed KMSDRM window creation failing if OpenGL libraries are not available, but GLES 2.0 libraries are
Sam Lantinga da9ba3a2 2022-11-18T12:17:27 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
Sam Lantinga ea4ea27a 2022-11-18T11:14:14 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.
David Gow 81479d87 2022-11-18T21:08:36 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.
Ozkan Sezer 6dc96aa7 2022-11-18T18:02:10 SDL_UDEV_DelCallback: return early if _this is NULL Fixes https://github.com/libsdl-org/SDL/issues/6548
Sylvain 16824865 2022-11-18T11:01:21 Cleanup of SDL_SetError that already return -1 value
Sylvain 3e70553c 2022-11-18T11:06:49 Unneed test before calling SDL_FreeSurface
Sam Lantinga 92099429 2022-11-18T06:53:13 Revert "sdl2-config.in: Deprecate sdl2-config" This reverts commit e0d904e90b15c7be45210e51b8969d3beab71437. SDL 3 will have the recommended path forward, we don't need to nag in SDL 2.
Sam Lantinga 769ae185 2022-11-18T06:52:12 Revert "sdl2.m4: Deprecate AM_PATH_SDL2 in favour of PKG_CHECK_MODULES" This reverts commit a66cb8cf216536b4e5e35c98c3f114d1787131b1. SDL 3 will have the recommended path forward, we don't need to nag in SDL 2.
Sam Lantinga 78ea6af2 2022-11-17T09:01:35 Updated to version 2.25.1 for release candidate
Sam Lantinga 1f87e9e2 2022-11-17T09:00:27 Updated patch notes for 2.26 release
Sylvain 71f2864b 2022-11-17T14:55:49 Fix usage of sizeof() in test/testgles*.c files
Sylvain 89572af6 2022-11-17T11:43:46 Fixed bug #6537 - AIX: use PAUDIO_WaitDevice
Sylvain cd0d5a5f 2022-11-17T11:23:15 Don't compare pointer against '0', but NULL
Sylvain ddad901c 2022-11-17T10:43:45 Remove unneeded semicolon
Sylvain 60c6cd55 2022-11-17T09:34:27 Fixed bug #6533 - PS2_JoystickUpdate: some invalid condition
Sylvain b7358e47 2022-11-17T09:18:49 Don't compare pointer against '0', but NULL
Sam Lantinga 77bcd269 2022-11-16T22:23:16 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
Ryan C. Gordon a1702d46 2022-11-16T23:39:41 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.
Ryan C. Gordon bb0b8ada 2022-11-16T22:02:21 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.
Sam Lantinga 913e403f 2022-11-16T18:03:29 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"
Sam Lantinga fcc994e1 2022-11-16T17:39:55 ensure that SDL2 does not set conflicting window flags (thanks @pionere!)
Sylvain 4192d1a1 2022-11-16T21:56:19 Fix compilation. It needs to be casted to 'int' type
Sylvain ce5da5d5 2022-11-16T21:47:43 Don't compare pointer against '0', but NULL
Sylvain 1d7966df 2022-11-16T21:27:16 Remove un-needed check for NULL pointer. They were previously checked just before.
Frank Praznik 8ea96f36 2022-11-16T11:32:31 events: Remove X and XKB keysym constants and headers The XKB_KEY_* and XK_* macros resolve to the same constant values, so use the raw values and note what keys they correspond to in the comments, as is done for the other keysym values in this file. This completely eliminates the need for any X or XKB system headers along with the if/else defines.
chalonverse 20af698b 2022-11-16T11:31:35 GDK: Updated MicrosoftGame.config files to use placeholder identifiers from the GDK project template rather than using Microsoft sample identifiers
Ryan C. Gordon 389ffab7 2022-11-16T12:53:48 Code style fixes, etc. Reference PR #6345.
ulatekh ec58a817 2022-10-05T19:26:09 Fixes made in response to running a static code analyzer under MS Windows. Most of these are probably harmless, but the changes to SDL_immdevice.c and SDL_pixels.c appear to have fixed genuine bugs. SDL_audiocvt.c: By separating the calculation of the divisor, I got rid of the suspicion that dividing a double by an integer led to loss of precision. SDL_immdevice.c: Added a missing test, one that could have otherwise led to dereferencing a null pointer. SDL_events.c, SDL_gamecontroller.c, SDL_joystick.c, SDL_malloc.c, SDL_video.c: Made it clear the return values weren't used. SDL_hidapi_shield.c: The size is zero, so nothing bad would have happened, but the SDL_memset() was still being given an address outside of the array's range. SDL_dinputjoystick.c: Initialize local data, just in case IDirectInputDevice8_GetProperty() isn't guaranteed to write to it. SDL_render_sw.c: drawstate.viewport could be null (as seen on line 691). SDL.c: SDL_MostSignificantBitIndex32() could return -1, though I don't know if you want to cope with that (what I did) or SDL_assert() that it can't happen. SDL_hints.c: Replaced boolean tests on pointer values with comparisons to NULL. SDL_pixels.c: Looks like the switch is genuinely missing a break! SDL_rect_impl.h: The MacOS static checker pointed out issues with the X comparisons that were handled by assertions; I added assertions for the Y comparisons. SDL_yuv.c, SDL_windowskeyboard.c, SDL_windowswindow.c: Checked error-result returns.
Ryan C. Gordon 7ebdae5d 2022-11-16T11:45:41 cocoa: Fix OpenGL deprecation warning.
Ryan C. Gordon 7c760f7f 2022-11-16T11:32:08 cocoa: Update CVDisplayLink timing when screen changes. This handles both the window moving to a new display and changing the current display's refresh rate in System Preferences Reference Issue #4918.
Ryan C. Gordon 1fd66cc8 2022-11-16T10:15:21 Revert "cocoa: Backed out CVDisplayLink code for macOS vsync." This reverts commit 04b50f6c6bef67b744b192c78775771b51ff2141. It turns out OpenGL vsync has broken again in macOS 12, so we're reintroducing our CVDisplayLink code to deal with it, again. Reference Issue #4918.
Ryan C. Gordon 9d67686a 2022-11-16T10:08:40 haptic: Deal with deprecated macOS symbol.
Ryan C. Gordon 6801d676 2022-11-16T09:52:33 Revert "pulseaudio: Only use PA_STREAM_ADJUST_LATENCY if buffer isn't super small." This reverts commit d8b1ef42aee52dad4ac3de69795ca2e8d2fd7704. This turned out to be unnecessary (it was a problem on the user's system, not an SDL bug). Reference Issue #6121.
Anonymous Maarten 81fd45f7 2022-11-16T15:13:04 ci: Disable emscripten build time tests
Anonymous Maarten 55534e27 2022-11-01T15:39:13 cmake: add time out to tests to avoid ci timeouts