Log

Author Commit Date CI Message
Brad Smith f4e3af15 2022-10-17T07:23:40 Simplify OSS test by removing OpenBSD specific location of the soundcard.h header OpenBSD has long since stopped using OSS. Remove checking for OpenBSD specific header.
Sylvain 485bb356 2022-10-17T13:30:30 Fixed bug #6401 - change the order of triangles when using RenderCopy, RenderCopyEx and RenderFillRect
Sam Lantinga 70dfd6dd 2022-10-16T09:05:13 Added mapping for Xbox Series X controller Fixes https://github.com/libsdl-org/SDL/issues/6296
Frank Praznik ed412c13 2022-10-15T14:05:35 wayland: Cleanup event source comments, headers, and error reporting Replace instances of fprintf(stderr, ...) with SDL_SetError(), replace C++ comments with C style, use a uniform format for multi-line comments, and remove unused headers as poll and select aren't used in this file (the SDL function which calls them is used instead).
Daniel Bomar 22461383 2022-10-15T15:54:12 SDL_audiocvt: Respct the SDL_HINT_AUDIO_RESAMPLING_MODE hint This implements using libsamplerate for the SDL_AudioCVT API. This library was already being used for audio streams when this hint is set.
Sam Lantinga e8fdb861 2022-10-15T10:02:39 Removed redundant masking when loading the IMU calibration
happyharryh a6573f94 2022-10-16T00:23:25 Fix bugs in IMU calibration loading for Nintendo Controllers
Frank Praznik 62047686 2022-10-13T16:24:13 wayland: Don't block on libdecor_dispatch() libdecor_dispatch() needs to be called, as libdecor plugins might do some required internal processing within, however care must be taken to avoid double-blocking in the case of a timeout, which can occur if libdecor_dispatch() and the SDL event processing both work on the main Wayland queue. Additionally, assumptions that libdecor will always dispatch the main queue or not process zero-length queues (can occur if a wait is interrupted by the application queueing an event) should not be made, as this behavior is outside the control of SDL and can change. SDL handles polling for Wayland events and then calls libdecor to do its internal processing and dispatch. If libdecor operates on the main queue, it will dispatch the queued events and the additional wl_display_dispatch_pending() call will be a NOP. If a libdecor plugin uses its own, separate queue, then the wl_display_dispatch_pending() call will ensure that the main queue is always dispatched.
Frank Praznik e89389ba 2022-10-14T20:41:10 wayland: Use MAP_PRIVATE when mapping the keyboard keymap file descriptor Per the Wayland spec, this must be mapped with MAP_PRIVATE in version 7 of the protocol and higher.
Sam Lantinga 5129a077 2022-10-14T14:35:52 Steam Controller support defaults off, as documented in SDL_hints.h
Sam Lantinga 6af17369 2022-10-14T10:36:24 Added mapping for Qanba Drone on Linux without HIDAPI
Sam Lantinga 93b71967 2022-10-14T10:32:03 Only update the battery level if we're on Bluetooth Fixes battery level dropping to empty with the Qanba Drone Arcade Stick. It looks like we might also be able to skip the check for all third party controllers, but I think this is the right thing to do for Sony controllers as well.
Sam Lantinga 120a957d 2022-10-14T09:57:02 Added support for the Qanba Drone Arcade Stick
Sam Lantinga 6bb0c2a5 2022-10-14T06:33:38 Added documentation for some scancodes
Sam Lantinga 91ff8845 2022-10-13T23:56:17 Disable "The key you just pressed is not recognized by SDL." message by default
Sam Lantinga 13919214 2022-10-13T23:23:55 Fixed reported cases of "Keyboard layout unknown" messages In all cases they were using SDL_SCANCODE_TABLE_XFREE86_2 with some keycodes remapped or fewer than expected keycodes. This adds a sanity check that catches all of them and gives them the right scancode table.
Sam Lantinga 2c192385 2022-10-13T22:50:57 Don't remove entries from an existing scancode keymap If we can't find the X11 keysym, it's likely that either the keysym is NoSymbol, in which case we won't hit it anyway, or it's been mapped to a character, in which case the existing mapping is correct for the scancode and the character will be reflected in the keycode mapping.
Sam Lantinga 99f2a503 2022-10-13T22:40:24 X11 scancode mapping cleanup * Consolidated scancode mapping tables into a single location for all backends * Verified that the xfree86_scancode_table2 is largely identical to the Linux scancode table * Updated the Linux scancode table with the latest kernel keycodes (still unmapped) * Route X11 keysym -> scancode mapping through the linux scancode table (which a few hand-written exceptions), which will allow mappings to automatically get picked up as they are added in the Linux scancode table * Disabled verbose reporting of missing keysym mappings, we have enough data for now
Cameron Gutman f5afb7d1 2022-10-13T18:44:15 directfb: Fix return type of DirectFB_RenderPresent()
Sam Lantinga fc73386f 2022-10-12T21:44:50 Fixed the mapping from raw joystick values to the expected [SDL_JOYSTICK_AXIS_MIN, SDL_JOYSTICK_AXIS_MAX] range. (thanks Tas!) The original code mapped incorrectly from [min, max] to [-32768, 32512], the upper bound being SDL_JOYSTICK_AXIS_MAX - 255 instead of SDL_JOYSTICK_AXIS_MAX.
Pierre Wendling eea9f638 2022-10-12T18:51:59 CI: Update to actions/checkout@v3.
Simon McVittie 7d230af5 2022-10-12T12:41:30 testevdev: Explain why the test data is encoded the way it is Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie 81dee319 2022-10-12T12:36:41 testevdev: Add a static assertion for supported sizeof(long) If this assertion fails on some platform (unlikely), we will need a third implementation for SwapLongLE(). Signed-off-by: Simon McVittie <smcv@collabora.com>
Pierre Wendling 5b9608e0 2022-10-11T23:35:33 Remove D3D9 workarounds for Watcom. The linked PRs have been merged since May.
Ryan C. Gordon 2d7816e3 2022-10-12T09:59:31 dynapi: Disable support for API call logging by default. We can manually enable it if necessary, but it bloats the library to leave it on just in case. Fixes #6381.
Sylvain f69e004d 2022-10-12T13:58:41 Android default to dynamic API disabled (see #6381)
Sylvain f6ff8778 2022-10-12T13:55:14 Android default to dynamic API disabled (see #6381)
Desour 6836273d 2022-10-12T00:17:50 Use XIWarpPointer if compiled with xinput2 Co-authored-by: Andrei E <andreien@proton.me>
Helge Deller fb32effd 2022-10-09T12:13:23 testevdev: Fix detection of word size The check for whether to use a 32- or 64-bit swap for an array of long values always took the 64-bit path, because <limits.h> wasn't included and therefore ULONG_MAX wasn't defined. Turn this into a runtime check, which a reasonable compiler will optimize into a constant. This fixes testevdev failures on 32-bit big-endian platforms such as hppa and older powerpc. Little-endian and/or 64-bit platforms are unaffected. [smcv: Added commit message] Bug-Debian: https://bugs.debian.org/1021310 Co-authored-by: Simon McVittie <smcv@collabora.com>
Pierre Wendling e710440f 2022-10-11T11:23:16 Vita: Fix typo in CI CMake command.
Ethan Lee be2cb000 2022-10-11T11:16:52 wayland: Check for the input handle before checking the keyboard handle
Sam Lantinga df1bd07d 2022-10-11T07:25:27 d3d12: actually execute the pending commands before processing resize This makes sure all the resources are in the expected state Fix the D3D12 case in https://github.com/libsdl-org/SDL/issues/6376
Frank Praznik 0b88e609 2022-10-11T07:40:35 wayland: Raise wl_seat maximum version to 8 Version 8 is required for supporting axis_value120 high-resolution scroll events.
zhailiangliang 41c718ed 2022-10-11T10:07:32 Fix memory leak in PSP_CreateTexture
happyharryh 6f224e4d 2022-10-11T10:44:20 Made timestamp_us of sensor events increase monotonically for Nintendo controllers
Pierre Wendling 4227a0b4 2022-10-10T22:44:48 Vita: Turn on `SDL_WERROR` in CI.
Pierre Wendling e99b05d6 2022-10-10T22:36:21 Vita: Install bash in CI. The wrapper `arm-vita-eabi-pkg-config` fails without it with the error: `env: can't execute 'bash': No such file or directory`
Pierre Wendling fefd48eb 2022-10-10T22:30:05 PS2: Turn on `SDL_WERROR` in CI.
Pierre Wendling 8117bfe5 2022-10-10T22:29:31 PS2: Ignore warnings from toolchain headers. The `gsInline.h` header creates `Wdeclaration-after-statement` warnings.
Pierre Wendling 04727946 2022-10-10T22:04:15 PSP: Turn on `SDL_WERROR` in CI.
Pierre Wendling 5ddac7e0 2022-10-10T22:04:02 PSP: Fix type mismatch warnings.
Pierre Wendling c1317175 2022-10-10T22:02:17 PSP: Fix `Wformat` warnings.
Pierre Wendling 669532d5 2022-10-10T22:01:49 PSP: Remove dead code. Fixes unused variable warning.
Ryan C. Gordon 17322e2b 2022-10-10T13:07:52 dynapi: Optionally log every call into the SDL API. This will only log things going through dynapi, which means it won't do anything if dynapi is disabled for a given build, but also things that call the `*_REAL` version of an API won't log either (which is to say, if an internal piece of SDL calls a public API, it won't log it, but if an application calls that same entry point, it will). Since this just inserts a different function pointer, unless you explicitly request this at runtime, it won't add any overhead, and, of course, the entire thing can be turned off with a single #define so it doesn't even add extra unused code to the shared library if the kill switch is flipped.
Sam Lantinga 45070835 2022-10-10T09:39:55 Fixed build
Sam Lantinga 680d0f04 2022-10-10T09:26:49 Added support for undefined or centered position for shaped windows Fixes https://github.com/libsdl-org/SDL/issues/6359
Pierre Wendling 65527537 2021-03-30T04:32:39 N3DS port (squashed) A dedicated renderer using Citro3D would likely allow for better much better graphical performances.
Pierre Wendling b737833d 2022-10-10T11:07:03 N3DS: Turn on SDL_WERROR in CI.
Pierre Wendling 6784d84c 2022-10-10T01:31:14 N3DS: Fix `-Wformat` warnings in tests. All warnings were about invalid specifiers. Since U/Sint32 is a long, using `%d` emits a -Wformat warning.
Pierre Wendling 43a2b0b1 2022-10-10T00:00:52 N3DS: Use macro to correct axis. Using `(value * SDL max) / 3DS max` allows for marginally better accuracy compared to `value * (SDL max / 3DS max)`.
Pierre Wendling 49c25b1d 2022-10-09T23:49:00 N3DS: Fix PrivateSensorUpdate call. A new timestamp parameter was added in 2c51874.
Pierre Wendling cb1972b3 2022-09-20T23:07:04 N3DS: ZL and ZR should be considered as triggers. Previously they were considered as clicking stick.
Pierre Wendling 86a8714f 2022-09-20T23:04:20 N3DS: Refactor joystick module to avoid globals.
Pierre Wendling 392f3882 2022-09-20T22:45:24 N3DS: Use SDL_Sensor instead of Joystick sensors.
Pierre Wendling 27557b62 2022-09-20T19:53:45 N3DS: Prefix timer sources with `N3DS_`.
Pierre Wendling efc93e68 2022-09-18T15:17:08 N3DS: Don't set `num_display` by hand. Doing so creates 2 empty displays at the beginning of the list.
Pierre Wendling c7c0e81c 2022-09-18T14:01:36 N3DS: Update README.
Pierre Wendling 83ec6062 2022-09-18T13:46:09 N3DS: Move gfxInit and hidInit from main to video.
Pierre Wendling 266014fa 2022-09-18T13:38:26 N3DS: Use SDL_Touch instead of the Joystick touch.
Pierre Wendling f9785702 2022-09-18T13:22:07 N3DS: Deduce screen from window's display. This removes the need for a dedicated window creation flag.
Pierre Wendling 46a13ad9 2022-09-18T12:35:32 N3DS: NEON is likely not supported.
Pierre Wendling af2bc2ed 2022-09-18T10:52:35 N3DS: Use osSetSpeedupEnable instead of PTMSYSM.
Pierre Wendling 03bbbcd8 2022-09-18T09:06:36 N3DS: Use CreateJoystickGUIDForName.
Pierre Wendling 2b2693ae 2022-09-18T08:49:56 N3DS: Use asprintf instead of snprintf.
Sam Lantinga 61b5360e 2022-10-10T08:27:42 Only check to see if the ICC profile changes when the display changes or we gain focus Fixes https://github.com/libsdl-org/SDL/issues/6366
Aaron Barany 6ffc45b0 2022-10-09T17:22:31 Removed "undefined" argument for Apple platforms. This is incompatible with enabling bitcode, such as with iOS builds. The default value for "undefined" is "error" so this option should be redundant.
Cameron Gutman ec1137df 2022-10-09T15:19:47 cmake: Apply CETCOMPAT fix from ef988fe1 to tests
Sam Lantinga f99fc326 2022-10-09T11:42:39 d3d12: fixed window resize handling Fixes https://github.com/libsdl-org/SDL/issues/6355
Sam Lantinga 490c20f9 2022-10-09T09:57:55 d3d12: reset the vertex buffer size when it is released
Sam Lantinga efdb390c 2022-10-09T09:11:33 Disable the HIDAPI Wii driver by default as it doesn't work with the dolphinbar
Frank Praznik 6391ad97 2022-10-09T11:11:55 wayland: Factor out common libdecor frame commit code The pattern of: libdecor_state_new() libdecor_frame_commit() libdecor_state_free() was used in several places. Factor it out into a common function.
Frank Praznik b0a9396b 2022-10-09T11:06:20 wayland: Remove XDG surface geometry calls These were needed to fix some buggy behavior regarding committing old buffer sizes when entering fullscreen that has since been corrected. Remove them.
Guldoman b91ddbc3 2022-10-09T06:15:18 wayland: null-terminate drop data
SDL Wiki Bot 9df1af35 2022-10-09T15:44:07 Sync SDL wiki -> header
Ozkan Sezer d0220395 2022-10-09T12:01:02 testhaptic: fix watcom "&array may not produce intended result" warning
Anonymous Maarten 151c2341 2022-10-06T05:27:37 ci: Add SDL_WERROR to a few configurations
Anonymous Maarten eb8eb621 2022-10-06T22:49:17 SDL_x11modes: fix -Wunused-variable
Anonymous Maarten 01498d3a 2022-10-06T03:19:28 SDL_render_psp.c: fix -Wshadow Emitted by PSP's gcc
Anonymous Maarten 4298e798 2022-10-06T02:55:30 SDL_offscreenframebuffer.c: fix format '%d' expecting int instead of Uint32 Emitted by Nintendo 3DS's gcc (fix is same as used by ngage)
Anonymous Maarten b8a4b8d1 2022-10-06T02:51:50 testautomation_mouse: fix format '%i' expecting 'int' instead of 'Uint32' Emitted by Nintendo 3DS's gcc
Anonymous Maarten b51a88a9 2022-10-06T02:23:57 SDL_malloc.c: fix variable 'used' set but not used Emitted by clang-cl
Anonymous Maarten 5c150ddc 2022-10-06T02:21:49 SDL_mslibc.c: fix unknown pragma ignored [-Wunknown-pragmas] Emitted by clang-cl
Anonymous Maarten 37beabd1 2022-10-06T02:16:07 SDL_mslib.c: clang-cl does not support `/GL-`
Anonymous Maarten 85fd40fa 2022-10-06T02:04:24 Fix -Wunused-const-variable warning when using clang-cl
Anonymous Maarten 7ae5d8d4 2022-10-06T01:15:49 testmessage: fix conversion from `intptr_t` to `Uint32` Emitted by MSVC
Anonymous Maarten 02b200ef 2022-10-06T01:14:28 testoffscreen: fix '<': signed/unsigned mismatch Emitted by MSVC
Anonymous Maarten 7a7980fa 2022-10-06T01:12:42 testnative: fix conversion from `time_t` to `unsigned int` Emitted by MSVC
Anonymous Maarten 87706895 2022-10-06T01:12:18 testmouse: add explicit int-cast to avoid warning about converting `float` to `int` Emitted by MSVC
Anonymous Maarten 3c251ec4 2022-10-06T01:10:22 testintersections: fix conversion from `time_t` to `unsigned int` Emitted by MSVC
Anonymous Maarten b771d9be 2022-10-06T01:09:32 tests: avoid MSVC preaching about unsafe functions
Anonymous Maarten ebae142a 2022-10-06T01:05:59 testhaptic: fix conversion from `size_t` to `int` Emitted by MSVC
Anonymous Maarten 18c776e1 2022-10-06T01:02:17 testspriteminimal: fix conversion from `time_t` to `unsigned int` Emitted by MSVC
Anonymous Maarten f3389f13 2022-10-06T01:00:58 testgeometry: fix conversion from 'double' to 'float', possible loss of data emitted by MSVC
Anonymous Maarten 2105c7f6 2022-10-06T00:58:26 SDL_thread.c: fix unused function SDL_FreeErrBuf when building without thread support (emscripten)
Anonymous Maarten 07225d2e 2022-10-06T00:55:37 cmake: fix check for -marm This fixes the following warning: clang: warning: argument unused during compilation: '-marm' [-Wunused-command-line-argument]
Anonymous Maarten 45da1339 2022-10-06T00:39:47 cmake: don't error on apple when using deprecated declarations
Anonymous Maarten 274ec025 2022-10-06T00:31:00 testautomation: avoid format related warnings by using a few pragma's ci: enable -Werror to a few platforms
Anonymous Maarten d04fa0ef 2022-10-06T00:30:11 controllermap: use enum to avoid '-Wmaybe-uninitialized' Emitted by MinGW: In function 'WatchJoystick', inlined from 'SDL_main' at D:/a/SDL/SDL/test/controllermap.c:802:9: D:/a/SDL/SDL/test/controllermap.c:437:9: warning: 'marker' may be used uninitialized [-Wmaybe-uninitialized] 437 | SDL_SetTextureAlphaMod(marker, alpha); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:/a/SDL/SDL/test/controllermap.c: In function 'SDL_main': D:/a/SDL/SDL/test/controllermap.c:355:71: note: 'marker' was declared here 355 | SDL_Texture *background_front, *background_back, *button, *axis, *marker;
Anonymous Maarten a905db9d 2022-10-05T23:59:01 testcustomcursor: fix Wswitch warning by casting the arg to an int
Anonymous Maarten bb527678 2022-10-05T23:56:27 testgamecontroller: fix -Wshadow warning by renaming global axis+button textures