Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed bug 5539 - Clang 11 fails to compile a CMake build with conflicting ↵HEADmaster | Sam Lantinga | 2021-02-09 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | types for _m_prefetchw vladius In SDL_cpuinfo.h it seems like <intrin.h> is not included when __clang__ is defined, as the comment in the file explicitly reads: "Many of the intrinsics SDL uses are not implemented by clang with Visual Studio" However, the SDL_endian.h header does include <intrin.h> without any precautions like: >#ifdef _MSC_VER >#include <intrin.h> >#endif Maybe it should be changed to something like: >#ifdef _MSC_VER >#ifndef __clang__ >#include <intrin.h> >#endif >#endif | ||||
* | Fixed bug 5543 - Wayland: Fix waylandvideo.h warnings | Sam Lantinga | 2021-02-09 | 1 | -0/+1 |
| | | | | | | wahil1976 This patch fixes the warnings seen when compiling the Wayland backend. This will also be required in the future to avoid issues with compilation. | ||||
* | Fix waiting on condition variables with the SRW lock implmentation | Cameron Gutman | 2021-02-08 | 2 | -6/+21 |
| | | | | | | | | | | | | | | | | | | | When SleepConditionVariableSRW() releases the SRW lock internally, it causes our SDL_mutex_srw state to become inconsistent. The lock is unowned yet inside, the owner is still the sleeping thread and more importantly the owner count is still 1. The next time someone acquires the lock, they will bump the owner count from 1 to 2. At that point, the lock is hosed. From the internal lock state, it looks to us like that owner has acquired the lock recursively, even though they have not. When they call SDL_UnlockMutex(), it will see the owner count > 0 and not call ReleaseSRWLockExclusive(). Now when someone calls SDL_CondSignal(), SleepConditionVariableSRW() will start the wakeup process by attempting to re-acquire the SRW lock. This will deadlock because the lock was never released after the other thread had used it. The thread waiting on the condition variable will never be able to wake up, even if the SDL_CondWaitTimeout() function is used and the timeout expires. | ||||
* | Backed out changeset 852a7bdbdf4b | Sam Lantinga | 2021-02-08 | 1 | -4/+0 |
| | | | | This causes a use-after-free memory error | ||||
* | free the 'display' after it was added to global list | Christian Rauch | 2021-02-08 | 1 | -0/+4 |
| | |||||
* | [KMS/DRM] Bugfix number #5535: Improve reliability, by wahil1976. | Manuel Alfayate Corchete | 2021-02-09 | 2 | -1/+28 |
| | |||||
* | make AddressSanitizer optional and disabled by default | Christian Rauch | 2021-02-08 | 1 | -1/+2 |
| | |||||
* | enable AddressSanitizer only for GCC 5 onwards (bug #5533) | Christian Rauch | 2021-02-08 | 1 | -14/+15 |
| | |||||
* | add '-shared-libasan' to debug flags (bug #5533) | Christian Rauch | 2021-02-08 | 1 | -7/+10 |
| | |||||
* | avoid some pedantic warnings in array initializers | Ozkan Sezer | 2021-02-08 | 3 | -3/+9 |
| | |||||
* | SDL: fix packet handling for original version of Stadia FW | Sam Lantinga | 2021-02-06 | 1 | -1/+2 |
| | |||||
* | minor updates to libc function checks | Ozkan Sezer | 2021-02-07 | 8 | -19/+25 |
| | |||||
* | [KMS/DRM] Fix build warning. | Manuel Alfayate Corchete | 2021-02-06 | 1 | -9/+5 |
| | |||||
* | [KMS/DRM] Replace indent tabs with spaces, as intended. | Manuel Alfayate Corchete | 2021-02-06 | 5 | -136/+137 |
| | |||||
* | [KMS/DRM] Merge patch for bug #5532: No need to correct cursor position now ↵ | Manuel Alfayate Corchete | 2021-02-05 | 1 | -12/+5 |
| | | | | that all windows are fullscreen. Link: https://bugzilla.libsdl.org/show_bug.cgi?id=5519. | ||||
* | [KMS/DRM] Remove redundant SDL_SendWindowEvent() call. | Manuel Alfayate Corchete | 2021-02-05 | 1 | -9/+0 |
| | |||||
* | [KMS/DRM] Restore all-windows-are-fullscreen functionality, since there is ↵ | Manuel Alfayate Corchete | 2021-02-04 | 1 | -15/+42 |
| | | | | no window manager in KMSDRM. | ||||
* | Fix Xbox Series X controller on macOS | Cameron Gutman | 2021-02-03 | 4 | -36/+21 |
| | | | | | | | | | | | | | | | | | There were two different implementations of IsBluetoothXboxOneController(), one in SDL_hidapi_xbox360.c and one in SDL_hidapi_xboxone.c. The latter had been updated to include USB_PRODUCT_XBOX_ONE_SERIES_X_BLUETOOTH while the former had not. This mismatch led to the Xbox Series X failing on macOS only. We have special code for handling the 360Controller driver for macOS which requires us to use the Xbox 360 driver for wired Xbox One controllers, and the SDL_hidapi_xbox360 version of IsBluetoothXboxOneController() was used to determine which devices were wired. In addition to adding the missing USB_PRODUCT_XBOX_ONE_SERIES_X_BLUETOOTH, this change moves IsBluetoothXboxOneController() into a single shared function which will ensure this bug won't happen again. | ||||
* | Updated runtime dependency on libudev | Sam Lantinga | 2021-02-04 | 1 | -1/+1 |
| | |||||
* | Fixed compiler warning | Sam Lantinga | 2021-02-04 | 1 | -1/+0 |
| | |||||
* | Backed out changeset 1cde3dd0f44d - this breaks windows which are created ↵ | Sam Lantinga | 2021-02-04 | 1 | -7/+0 |
| | | | | and then set to FULLSCREEN_DESKTOP | ||||
* | Android: documention update | Sylvain Becker | 2021-02-04 | 1 | -3/+30 |
| | |||||
* | KMSDRM doesn't have a window manager, so all windows are fullscreen | Sam Lantinga | 2021-02-03 | 1 | -0/+7 |
| | |||||
* | SDL_vulkan_utils: minor code clean-up | Sylvain Becker | 2021-02-03 | 1 | -187/+147 |
| | |||||
* | SDL_ConvertColorkeyToAlpha: remove and clarify a FIXME | Sylvain Becker | 2021-02-03 | 1 | -64/+57 |
| | | | | This function doesn't handle bpp 1 or 3 case, because those formats never have an alpha channel | ||||
* | Fixed detecting the paddles on the Xbox Elite Series 1 controller | Sam Lantinga | 2021-02-02 | 4 | -31/+3 |
| | |||||
* | Fixed bug 5471 - Creating a fullscreen desktop window goes windowed temporarily | Sam Lantinga | 2021-02-01 | 1 | -1/+1 |
| | | | | | | This is caused by the Metal renderer recreating the window because by default we create an OpenGL window on macOS. It turns out that at least on macOS 10.15, a window that has been initialized for OpenGL can also be used with Metal. So we'll skip recreating the window in that case. | ||||
* | Added test command line options to force different window types | Sam Lantinga | 2021-02-01 | 1 | -0/+13 |
| | |||||
* | Removed support for clock_gettime_nsec_np() | Sam Lantinga | 2021-02-01 | 8 | -113/+5 |
| | | | | SDL_GetTicks() was broken and it's not adding any real value here. | ||||
* | cmake: enable AddressSanitizer in Debug builds if supported | Christian Rauch | 2021-02-01 | 1 | -0/+51 |
| | |||||
* | Don't uncorrelate while rumble is active and stay correlated longer in case ↵ | Sam Lantinga | 2021-02-01 | 1 | -6/+9 |
| | | | | raw input messages are lagging a bit. | ||||
* | wayland: Don't crash when the properties of already existing wl_output change | Sebastian Krzyszkowiak | 2021-02-01 | 3 | -5/+14 |
| | |||||
* | Fixed bug 5524 - Pass NSString to NSLog() | Sam Lantinga | 2021-02-01 | 2 | -2/+8 |
| | | | | | | | | | | | | | | | | Hiroyuki Iwatsuki If you pass the C string directly to NSLog(), it will be garbled with Japanese and probably other language strings, or no log will be output at all. NSLog("Hello, World!"); // => "Hello, World!" NSLog("こんにちは、世界!"); // => No output... Therefore, you need to convert the string to an NSString before passing it to NSLog(). NSString *str = [NSString stringWithUTF8String:"こんにちは、世界!"]; NSLog(@"%@", str); // => "こんにちは、世界!" Thank you. | ||||
* | Don't enable address sanitize flags without checking compiler first | Sam Lantinga | 2021-01-31 | 1 | -17/+0 |
| | |||||
* | free 'outputs' in 'Wayland_DestroyWindow' | Christian Rauch | 2021-01-31 | 1 | -0/+2 |
| | |||||
* | free the 'data_device_manager' | Christian Rauch | 2021-01-31 | 1 | -0/+3 |
| | |||||
* | cmake: enable AddressSanitizer in Debug builds | Christian Rauch | 2021-01-31 | 1 | -0/+17 |
| | |||||
* | wayland: Fix transform and scale handling when setting display mode | Sebastian Krzyszkowiak | 2021-01-31 | 2 | -10/+23 |
| | |||||
* | [KMS/DRM] Merge patch for bug 5522#: Implement KMSDRM_GetWindowWMInfo(). | Manuel Alfayate Corchete | 2021-01-31 | 2 | -11/+31 |
| | |||||
* | [KMS/DRM] Fix for bug #5518: only do async pageflips when hardware supports ↵ | Manuel Alfayate Corchete | 2021-01-31 | 3 | -3/+12 |
| | | | | them. | ||||
* | Add default handler for Alt+Tab while keyboard grab is enabled | Cameron Gutman | 2021-01-27 | 2 | -0/+30 |
| | | | | | | | | | By default, we will minimize the window when we receive Alt+Tab with a full-screen keyboard grabbed window to allow the user to escape the full-screen application. Some applications like remote desktop clients may want to handle Alt+Tab themselves, so provide an opt-out via SDL_HINT_ALLOW_ALT_TAB_WHILE_GRABBED=0. | ||||
* | Revert checks on destination scaling size (see bug #5510) | Sylvain Becker | 2021-01-30 | 2 | -4/+6 |
| | |||||
* | [KMS/DRM] Correct small omission on bugfix #5513: y-coord correction has to ↵ | Manuel Alfayate Corchete | 2021-01-29 | 2 | -7/+12 |
| | | | | be done on WarpMouseGlobal, too. | ||||
* | Fixed crash if the GameCube controller hasn't been opened yet | Sam Lantinga | 2021-01-29 | 1 | -0/+4 |
| | |||||
* | added --enable-xinput switch for windows builds | Ozkan Sezer | 2021-01-29 | 4 | -27/+57 |
| | |||||
* | Remove checks on destination scaling size (see bug #5510) | Sylvain Becker | 2021-01-29 | 2 | -6/+4 |
| | |||||
* | [KMS/DRM] Remove unused KMSDRM_SetWindowGrab prototype in header file. | Manuel Alfayate Corchete | 2021-01-29 | 1 | -1/+0 |
| | |||||
* | [KMS/DRM] Patch for bug #5513. KMSDRM backend can now manage and use several ↵ | Manuel Alfayate Corchete | 2021-01-29 | 4 | -318/+407 |
| | | | | displays. | ||||
* | Properly handle keys already down when the hook is installed | Cameron Gutman | 2021-01-28 | 3 | -0/+18 |
| | | | | | | | For keys that are already down when we install the keyboard hook, we need to allow the WM_KEYUP/WM_SYSKEYUP message to be processed normally. This ensures that other applications see the key up, which prevents the key from being stuck down from the perspective of other apps when our grab is released. | ||||
* | Remove old YUV fixme | Sylvain Becker | 2021-01-29 | 1 | -5/+0 |
| |