Log

Author Commit Date CI Message
Sam Lantinga c02cd203 2022-05-27T15:16:02 Revert "Disable formatting not supported by Visual Studio 2019" This reverts commit 26a75add31c219f0a9368b474b8a0691b937a465. It turns out Visual Studio doesn't support a lot of the formatting used here.
Sam Lantinga 26a75add 2022-05-27T15:15:14 Disable formatting not supported by Visual Studio 2019
Sam Lantinga bef9f2b2 2022-05-26T20:45:13 Don't trigger device notifications when Steam Deck backlight changes
Ryan C. Gordon 5968f3d8 2022-05-26T10:44:01 gen_audio_resampler_filter.c: Precalculate loop-invariant bessel(beta). Minor optimization in offline code.
Ozkan Sezer 822cf0b3 2022-05-26T01:33:32 updated config.guess from mainstream.
Cameron Cawley 6eda520f 2022-05-25T21:40:28 riscos: Add a basic implementation of SDL_ShowCursor()
Cameron Cawley 347659e8 2022-05-25T22:07:12 riscos: Ensure that last_mouse_buttons is initialised correctly
Cameron Cawley cb43eb43 2022-05-25T21:43:36 riscos: Ensure the mouse focus is set when creating the window
Cameron Cawley 4c711d2d 2022-05-25T22:12:25 testcustomcursor: Allow running without custom or system cursors
Sam Lantinga 22d6e09a 2022-05-25T11:04:58 Don't try to call hid_ble_scan() if HIDAPI is disabled Fixes https://github.com/libsdl-org/SDL/issues/5699
Ryan C. Gordon 195ca499 2022-05-25T10:46:06 include/SDL_video.h: You can google it. This looks bad when reading Markdown as plain text, as one would do when reading the headers directly.
Ryan C. Gordon 7ce311be 2022-05-25T10:43:14 include/SDL_system.h: Fixed a link that was still hg.libsdl.org
Ryan C. Gordon bed96482 2022-05-25T10:42:11 wikiheaders.pl: Deal with links better.
Ryan C. Gordon 96a04cb9 2022-05-25T09:30:29 wikiheaders.pl: Don't wordwrap truly massive words. Usually, these are going to be URLs that you don't want to split across lines.
Sam Lantinga b28d304b 2022-05-24T17:24:03 Only include controller_type.h in SDL_joystick.c It has a huge array of controllers and we only want it instantiated once
SDL Wiki Bot a8e75487 2022-05-24T22:57:04 Sync wiki -> header
Ozkan Sezer 9220f92b 2022-05-25T01:01:02 hidapi/libusb/hid.c (read_thread): mark as SDLCALL
SDL Wiki Bot 17976556 2022-05-24T18:26:05 Sync wiki -> header
Ozkan Sezer 5dee0821 2022-05-24T20:00:02 updates to windows watcom makefile: - use 'OPTIONS RESOURCE' linker directive, instead of playing tricks on the built dll. - build libm sources as a static library and link the dll to with, like the os/2 makefile does. - remove *.res with make clean.
Simon McVittie 412ceb84 2022-05-24T16:27:54 video: Only check major version in SDL_GetWindowWMInfo Since #5602, SDL is intended to have the same ABI across the whole major-version 2 cycle, so we should not check that the minor version matches the one that was used to compile an application. There are two checks that could make sense here. The first check is that the major version matches the expected major version. This is usually unnecessary and is not usually done (if we're calling into the wrong library we'll likely crash anyway), but since we have the information, we might as well continue to use it. The second check is whether the version provided by the caller is equal to or greater than a threshold version at which additional fields were added to the struct. If it is, we should populate those fields; if it is not, then we cannot. This is only useful on platforms where additional fields have genuinely been added during the lifetime of SDL 2, like Windows and DirectFB (but not X11). This commit changes the first check to be consistent about only looking at the minor version, while leaving the second check using SDL_VERSIONNUM (which will be removed or widened in SDL 3, but it's fine for now). Resolves: https://github.com/libsdl-org/SDL/issues/5711 Fixes: cd7c2f1 "Switch versioning scheme to be the same as GLib and Flatpak" Signed-off-by: Simon McVittie <smcv@collabora.com>
Ozkan Sezer aeeccb5d 2022-05-23T00:24:40 CI, OpenWatcom: remove workaround now that setup-watcom is fixed.
Sam Lantinga d5e58049 2022-05-22T10:51:21 Don't specify a specific SDK when building for UWP Instead use the latest version installed
Tim Schumacher 12cc636c 2022-05-21T23:33:31 Make sdl2-config prefixes configurable again The installation prefix ended up being hard-coded into the `sdl2-config` script after the placeholders were accidentally removed in 6956f4aa1982b66b234026b46f7bb2dd44c67894.
Sam Lantinga 6da6a6cb 2022-05-21T13:51:21 Make sure Objective C files are built with the same flags as C files. Fixes https://github.com/libsdl-org/SDL/issues/5707
Sam Lantinga e97b5062 2022-05-21T10:06:05 Need SDL_stdinc.h for _SDL_HAS_BUILTIN
Sam Lantinga 626a3c5e 2022-05-21T09:58:39 Use _SDL_HAS_BUILTIN() instead of __has_builtin
ShuangLiu1992 f4fc4719 2022-05-09T18:35:50 fix CheckCOCOA on modern CMake Modern CMake doesn't need "LANGUAGE C" for Objective-C set_source_files_properties(${COCOA_SOURCES} PROPERTIES LANGUAGE C) should be removed fro video/cocoa/*.m as well otherwise project won't compile see also https://github.com/libsdl-org/SDL/commit/d3cc5764c0f66872a6b87c0ffbca66c85dccbea3
David Carlier 1f48f8cd 2022-05-21T17:47:32 SDL_TriggerBreakPoint update using builtin instead of assembly versions if available
Mathieu Eyraud fe46569c 2022-05-21T10:44:50 Fix potential memory leak in SDL_AddHintCallback
Ivan Le Lann e4b5afa5 2022-05-21T13:16:12 fix unused variable depending on YUV format
Christian Rauch e59cba95 2022-05-21T13:50:56 add libdecor_dispatch
Cameron Cawley 1a1cc802 2022-05-21T16:15:24 Use a tagged version of OpenWatcom in CI builds
Ryan C. Gordon dc62fec5 2022-05-20T21:07:25 audio: Fix locking in backends that manage their own callback threads. Otherwise you might get a race where an app pauses the device, but the audio callback still manages to run after the pause is in place.
Simon McVittie a95f5a79 2022-05-20T19:43:02 test: Use install(1) more portably I had assumed that only Linux users would be interested in GNOME-style installed-tests, but in principle there's no reason why they can't be used on non-Linux. Signed-off-by: Simon McVittie <smcv@collabora.com>
Ozkan Sezer 848d2008 2022-05-20T21:10:56 test/Makefile.w32: fix minor typo
Sam Lantinga b1cf3229 2022-05-19T16:49:47 Fixed HIDAPI PS4 controller being picked up when running under Steam Input with PS4 configuration enabled
Cameron Cawley 83ae1b49 2022-05-19T23:11:22 Convert the test executables to AIF in RISC OS CMake builds
Cameron Cawley d2b59658 2022-05-19T22:54:23 Remove extra path separator in GetNearbyFilename
Ryan C. Gordon 9edd411a 2022-05-19T17:15:10 x11: send move/resize events when waiting on fullscreen change. Otherwise we ignore the Configure/etc events when they come in because the window is already in an identical state as far as SDL is concerned. Fixes #5593. May also fix: Issue #5572. Issue #5595.
Cameron Cawley b798e49c 2022-05-19T21:44:38 Fix build warning with MSVC
Simon McVittie b0a27cb1 2022-05-19T19:45:24 Avoid unintended float -> double conversion in SDL_FRectEqualsEpsilon Resolves: https://github.com/libsdl-org/SDL/issues/5691 Signed-off-by: Simon McVittie <smcv@collabora.com>
Cameron Cawley f0566702 2022-05-19T16:58:11 Fix enabling SDL_DYNAMIC_API in OpenWatcom builds
Cameron Cawley 3d52d049 2022-05-19T15:38:35 Remove the '_' prefix from symbol names in Windows OpenWatcom builds
Cameron Cawley aa51a979 2022-05-19T13:14:29 Run tests with OpenWatcom on CI
Cameron Cawley 9dfa000b 2022-05-18T20:20:03 Initial support for building for Windows with OpenWatcom
Cameron Cawley 5ef36ead 2022-05-18T20:58:41 Add some missing tests to Watcom builds
Cameron Cawley 30668731 2022-05-18T20:56:30 Split the common code in test/Makefile.os2 into a separate file
Sam Lantinga 5669743a 2022-05-19T09:45:57 Make sure SDL_CaptureMouse() is only called on the main thread Windows handles mouse capture on a per-thread basis, and capture must be done on the thread used to create a window. Fixes https://github.com/libsdl-org/SDL/issues/5577
Ozkan Sezer efa2e6a1 2022-05-19T18:55:02 SDL_thread.h: use SDL_ThreadFunction for SDL_CreateThreadWithStackSize
Ozkan Sezer 15781a69 2022-05-19T18:55:02 dynapi: fix SDL_DYNAPI_PROC for SDL_iPhoneSetAnimationCallback()
Cameron Cawley f5cf0e37 2022-05-19T14:51:25 Remove unused and duplicate defines from SDL_dynapi_overrides.h
Ozkan Sezer 03ebc439 2022-05-19T14:01:10 dynapi: add missing SDLCALL for SDL_TLSSet's dtor param.
Pierre Wendling 973424d9 2022-05-06T12:08:44 Add for-each macros to clang-format.
Pierre Wendling 501a4991 2022-05-05T18:44:32 Add clang-format on/off comments where necessary. Comments were added in places where INDENT-ON/OFF comments are. Places like stdlib's asm don't need it as clang-format doesn't try to indent it.
Pierre Wendling c6a77971 2022-05-05T03:27:47 Add a clang-format config file. tmp
Sam Lantinga 0e6d4baa 2022-05-19T01:23:24 Fixed compile warning on gcc 11
Sam Lantinga c7dff3a2 2022-05-19T00:35:22 Attempt to get the X1 and X2 button state on X11 by using the current event state instead of direct X11 query.
Sam Lantinga 57130b75 2022-05-19T00:31:20 Revert "x11: get x1/x2 button state in GetGlobalMouseState" This reverts commit 3fcc2cb500a752698687ad0c8bb14778e6cb84c3. Button4 and Button5 are for the scrollwheel, not the extended buttons. I don't know of a way to query the state of the extended buttons using X11.
Sam Lantinga 47f1cb55 2022-05-18T23:48:15 Fixed picking up the correct mapping for virtual controllers on Android Fixes https://github.com/libsdl-org/SDL/issues/5662
Sam Lantinga f7b774a7 2022-05-18T17:59:17 Fixed build error on Linux if HAVE_INOTIFY isn't defined Fixes https://github.com/libsdl-org/SDL/issues/5682
Sam Lantinga f9a9d3c8 2022-05-18T17:23:49 Also restore previous capture window if CaptureMouse() fails
Sam Lantinga 7044452d 2022-05-18T17:15:10 Handle recursion in SDL_UpdateMouseCapture() Fixes https://github.com/libsdl-org/SDL/pull/5608
Ozkan Sezer dbd54dd7 2022-05-19T03:00:04 adjust dynapi after commit 0cca71a changes for SDL_qsort and SDL_bsearch
Sam Lantinga e19a9a79 2022-05-18T15:29:59 Fixed a message box getting the mouse capture state out of sync
Cameron Cawley 622311c0 2022-05-18T22:51:58 Add extra XInput structures and defines for older SDKs
Cameron Cawley c8eea020 2022-05-18T21:14:20 Fix C89 build errors in Windows builds
Cameron Cawley 0cca71a8 2022-05-18T22:12:05 Use SDLCALL for callbacks in public APIs
Cameron Cawley ffab9f46 2022-05-18T21:07:33 Avoid clashing with system headers when redefining standard library functions
Simon McVittie 4cb57bf1 2022-05-18T13:42:48 .editorconfig: Automatically configure multiple text editors See editorconfig.org for details of the format, which is understood by multiple text editors, either directly or via plugins. This is not comprehensive, but should cover most of the SDL codebase. Please extend as needed. Signed-off-by: Simon McVittie <smcv@collabora.com>
Sam Lantinga 06aca7ed 2022-05-18T10:09:24 Fixed warping back into the window when gaining focus with warp relative mode enabled
Sam Lantinga 0ffd9859 2022-05-18T09:59:12 Check to see if the file exists in the base path before returning it
pionere c4cf63f8 2022-05-18T18:04:12 improve test-configuration - testkeys 'NEEDS_DISPLAY' - 'disable' relevant tests in case DUMMY audio/video is disabled
Sam Lantinga b44241ab 2022-05-18T08:50:59 Don't send mouse events when warping in relative mode This fixes games which set relative mode and then did mouse warping at the same time Reference https://github.com/libsdl-org/SDL/issues/5609
pionere ea152532 2022-05-18T17:23:26 fix GetNearbyFilename - fix memory leak due to variable 'base' - fix usage of uninitialized variable (path)
Ivan Epifanov 8c5bda6a 2022-05-18T17:58:35 Vita: remove Vita-specific RWOps code
Sam Lantinga aa6ea607 2022-05-18T06:57:28 Fixed whitespace Whitespace inconsistencies reported in https://github.com/libsdl-org/SDL/pull/5673
Ryan C. Gordon 56665e1d 2022-05-17T12:50:13 cocoa: Try to use better system cursors. These try to pull from the .pdf files that are installed with macOS, which fit our needs better, and fall back to the most reasonable defaults available from NSCursor if we can't load them. Since these are installed under /System, they should be sandbox accessible, and if this totally fails, it should still go on, albeit with a less good cursor. Reference Issue #2123.
Ryan C. Gordon a12ffbd5 2022-05-17T12:49:36 testcustomcursor: Log the current cursor type as it changes. So you know what you're looking at.
Alex Szpakowski e9c7b519 2022-05-16T21:03:41 macOS: Fix reference counts of internal window data. Fixes crashes when destroying or recreating a window (#5664).
Ozkan Sezer a4800495 2022-05-17T01:33:20 disable dynapi for os/2, at least for now. (see bugs #5667 and #5669.)
Ozkan Sezer ec1a0f62 2022-05-17T01:33:02 SDL_malloc.c: workaround calling convention issues for real_xxx procs.
Sam Lantinga 1f2a2416 2022-05-16T09:02:35 Add new virtual joysticks to the end of the list This guarantees that the device index that's returned is stable, as long as no joystick hotplug events occur.
Sam Lantinga 3c3ccb1d 2022-05-16T08:55:54 Fixed crash if a virtual joystick was disconnected
Ryan C. Gordon 2317a96c 2022-05-16T10:50:13 x11: Use XC_top_left_corner/XC_top_right_corner instead of XC_fleur. On Gnome (and hopefully others!), this produces something that actually matches SDL_SYSTEM_CURSOR_SIZENWSE/SDL_SYSTEM_CURSOR_SIZENESW. On other desktop enviroments, it probably fits the spirit better than XC_fleur in any case. Reference Issue #2123.
Sam Lantinga 48b6cd8b 2022-05-16T07:23:30 Fixed whitespace
Sam Lantinga f0bc5c9c 2022-05-16T07:21:28 Added effects support for virtual controllers
Sam Lantinga b3a18706 2022-05-16T06:37:38 Removed unused variables
Sam Lantinga 7e005bd8 2022-05-16T06:22:18 Fixed mapping the paddle buttons with the virtual controller
Sam Lantinga e3fd8fea 2022-05-16T06:16:32 Fixed getting the controller index when specifying --virtual (thanks @zturtleman)
SDL Wiki Bot 5953422c 2022-05-16T03:52:04 Sync wiki -> header
Ryan C. Gordon e78a72ec 2022-05-15T23:50:08 fnsince.pl: Fix next version value to match new versioning scheme.
Sam Lantinga bfac54b5 2022-05-15T20:33:28 Added the ability to specify which buttons and axes are present for virtual controllers
SDL Wiki Bot 49ca8bf5 2022-05-16T03:03:04 Sync wiki -> header
Sam Lantinga 94eeb587 2022-05-15T20:01:12 First pass at extending virtual controller functionality Added the ability to specify a name and the product VID/PID for a virtual controller Also added a test case to testgamecontroller, if you pass --virtual as a parameter
Sam Lantinga 7ad15c5b 2022-05-15T09:35:52 Added game controller support for virtual joysticks Fixes https://github.com/libsdl-org/SDL/issues/5662
Sam Lantinga 996b3dc3 2022-05-15T09:33:28 Fixed warning building with Visual Studio
Cameron Cawley e0f3da49 2022-05-12T12:18:23 Remove unused SDL_ASSEMBLY_ROUTINES define
SDL Wiki Bot f93e8107 2022-05-12T07:39:04 Sync wiki -> header
Sylvain 6b9884d4 2022-05-12T09:36:49 Fixed bug #4213 - update documentation to reflect SDL2 behavior of SDL_RenderGetLogicalSize
Ethan Lee e4bb3c86 2022-05-11T18:13:44 wayland: Fix build for configs without libdecor