summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug 5539 - Clang 11 fails to compile a CMake build with conflicting ↵HEADmasterSam Lantinga2021-02-091-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 warningsSam Lantinga2021-02-091-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 implmentationCameron Gutman2021-02-082-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 852a7bdbdf4bSam Lantinga2021-02-081-4/+0
| | | | This causes a use-after-free memory error
* free the 'display' after it was added to global listChristian Rauch2021-02-081-0/+4
|
* [KMS/DRM] Bugfix number #5535: Improve reliability, by wahil1976.Manuel Alfayate Corchete2021-02-092-1/+28
|
* make AddressSanitizer optional and disabled by defaultChristian Rauch2021-02-081-1/+2
|
* enable AddressSanitizer only for GCC 5 onwards (bug #5533)Christian Rauch2021-02-081-14/+15
|
* add '-shared-libasan' to debug flags (bug #5533)Christian Rauch2021-02-081-7/+10
|
* avoid some pedantic warnings in array initializersOzkan Sezer2021-02-083-3/+9
|
* SDL: fix packet handling for original version of Stadia FWSam Lantinga2021-02-061-1/+2
|
* minor updates to libc function checksOzkan Sezer2021-02-078-19/+25
|
* [KMS/DRM] Fix build warning.Manuel Alfayate Corchete2021-02-061-9/+5
|
* [KMS/DRM] Replace indent tabs with spaces, as intended.Manuel Alfayate Corchete2021-02-065-136/+137
|
* [KMS/DRM] Merge patch for bug #5532: No need to correct cursor position now ↵Manuel Alfayate Corchete2021-02-051-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 Corchete2021-02-051-9/+0
|
* [KMS/DRM] Restore all-windows-are-fullscreen functionality, since there is ↵Manuel Alfayate Corchete2021-02-041-15/+42
| | | | no window manager in KMSDRM.
* Fix Xbox Series X controller on macOSCameron Gutman2021-02-034-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 libudevSam Lantinga2021-02-041-1/+1
|
* Fixed compiler warningSam Lantinga2021-02-041-1/+0
|
* Backed out changeset 1cde3dd0f44d - this breaks windows which are created ↵Sam Lantinga2021-02-041-7/+0
| | | | and then set to FULLSCREEN_DESKTOP
* Android: documention updateSylvain Becker2021-02-041-3/+30
|
* KMSDRM doesn't have a window manager, so all windows are fullscreenSam Lantinga2021-02-031-0/+7
|
* SDL_vulkan_utils: minor code clean-upSylvain Becker2021-02-031-187/+147
|
* SDL_ConvertColorkeyToAlpha: remove and clarify a FIXMESylvain Becker2021-02-031-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 controllerSam Lantinga2021-02-024-31/+3
|
* Fixed bug 5471 - Creating a fullscreen desktop window goes windowed temporarilySam Lantinga2021-02-011-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 typesSam Lantinga2021-02-011-0/+13
|
* Removed support for clock_gettime_nsec_np()Sam Lantinga2021-02-018-113/+5
| | | | SDL_GetTicks() was broken and it's not adding any real value here.
* cmake: enable AddressSanitizer in Debug builds if supportedChristian Rauch2021-02-011-0/+51
|
* Don't uncorrelate while rumble is active and stay correlated longer in case ↵Sam Lantinga2021-02-011-6/+9
| | | | raw input messages are lagging a bit.
* wayland: Don't crash when the properties of already existing wl_output changeSebastian Krzyszkowiak2021-02-013-5/+14
|
* Fixed bug 5524 - Pass NSString to NSLog()Sam Lantinga2021-02-012-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 firstSam Lantinga2021-01-311-17/+0
|
* free 'outputs' in 'Wayland_DestroyWindow'Christian Rauch2021-01-311-0/+2
|
* free the 'data_device_manager'Christian Rauch2021-01-311-0/+3
|
* cmake: enable AddressSanitizer in Debug buildsChristian Rauch2021-01-311-0/+17
|
* wayland: Fix transform and scale handling when setting display modeSebastian Krzyszkowiak2021-01-312-10/+23
|
* [KMS/DRM] Merge patch for bug 5522#: Implement KMSDRM_GetWindowWMInfo().Manuel Alfayate Corchete2021-01-312-11/+31
|
* [KMS/DRM] Fix for bug #5518: only do async pageflips when hardware supports ↵Manuel Alfayate Corchete2021-01-313-3/+12
| | | | them.
* Add default handler for Alt+Tab while keyboard grab is enabledCameron Gutman2021-01-272-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 Becker2021-01-302-4/+6
|
* [KMS/DRM] Correct small omission on bugfix #5513: y-coord correction has to ↵Manuel Alfayate Corchete2021-01-292-7/+12
| | | | be done on WarpMouseGlobal, too.
* Fixed crash if the GameCube controller hasn't been opened yetSam Lantinga2021-01-291-0/+4
|
* added --enable-xinput switch for windows buildsOzkan Sezer2021-01-294-27/+57
|
* Remove checks on destination scaling size (see bug #5510)Sylvain Becker2021-01-292-6/+4
|
* [KMS/DRM] Remove unused KMSDRM_SetWindowGrab prototype in header file.Manuel Alfayate Corchete2021-01-291-1/+0
|
* [KMS/DRM] Patch for bug #5513. KMSDRM backend can now manage and use several ↵Manuel Alfayate Corchete2021-01-294-318/+407
| | | | displays.
* Properly handle keys already down when the hook is installedCameron Gutman2021-01-283-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 fixmeSylvain Becker2021-01-291-5/+0
|