kc3-lang/SDL

Branch :


Log

Author Commit Date CI Message
f7ee06f3 2021-08-27 00:50:43 build-scripts: Add a buildbot script for CodeChecker static analysis.
3261f7f6 2021-08-26 16:15:30 audio: Support "pulse" as an alias for "pulseaudio" Originally, SDL 1.2 used "pulse" as the name for its PulseAudio driver. While it now supports "pulseaudio" as well for compatibility with SDL 2.0 [1], there are still scripts and distro packages which set SDL_AUDIODRIVER=pulse [2]. While it's possible to remove this in most circumstances or replace it with "pulseaudio" or a comma-separated list, this may still conflict if the environment variable is set globally and old binary builds of SDL 1.2 (e.g. packaged with older games) are being used. To fix this on SDL 2.0, add a hardcoded check for "pulse" as an audio driver name, and replace it with "pulseaudio". This mimics what SDL 1.2 does (but in reverse). Note that setting driver_attempt{,_len} is safe here as they're reset correctly based on driver_attempt_end on the next loop. [1] https://github.com/libsdl-org/SDL-1.2/commit/d9514097846381cd30fe08df65dbdd48de92a058 [2] https://bugzilla.opensuse.org/show_bug.cgi?id=1189778
503ea8e8 2021-08-25 14:41:58 Don't modify the Nintendo Switch home LED state by default
b1e492d1 2021-08-25 19:31:47 Search for an appropiate plane instead of simply using the first one.
23ffa3d9 2021-08-25 21:31:07 Update SDL's copy of the EGL headers from Khronos
524964f9 2021-08-14 12:09:13 Add SDL_HINT_VIDEO_EGL_ALLOW_TRANSPARENCY
5113fedf 2021-08-02 23:01:12 video/wayland: use EGL_EXT_present_opaque when available
130b6beb 2021-08-24 17:01:34 Manually scan for Linux joysticks before udev scan runs This allows us to have joysticks sorted by insert time at startup, fixing https://github.com/libsdl-org/SDL/issues/4688
cbccf5bb 2021-08-24 17:01:06 Use SDL_GetHint() instead of SDL_getenv() for Linux joystick hints
0ae2a9f8 2021-08-22 17:44:08 Fixed the Atari gamecontroller mappings and added Atari Xbox 360 This change corrects the mappings for the Atari gamecontroller and adds support for the Atari Xbox 360 compatible gamecontroller. The Atari game controller can switch between Atari and Xbox 360 mappings.
d5fe9c30 2021-08-24 14:18:47 x11: Log a warning if we decide to use XVidMode. Reference issue #1782.
76d50d28 2021-08-22 14:40:54 Force color diagnostics when applicable Although GCC and Clang automatically generate color diagnostics on terminal output, they do not do so when the compiler output is piped through another process, like in the case for ninja-build and ccache. Similarly, it would also be nice to be able to see the color diagnostics on the CI build log in the web interface provided by the CI providers.
79c7a171 2021-08-24 12:41:41 testvulkan: reformatted to more-closely match SDL coding conventions.
b073d275 2021-08-17 16:52:49 test/vulkan: fix/workaround validation errors
fff421f4 2021-08-23 23:59:54 cmake: fix a bunch of things to properly link without LOADSO enabled. The wrong logic, copy/pasted to a bunch of places, would correctly disable the dynamic loading but fail to specify the libraries that SDL would now need to explicitly link against.
374b0b9a 2021-08-23 23:58:54 cmake: Don't support Vulkan if LOADSO is disabled. Fixes #4373.
abba1811 2021-08-23 20:18:57 testvulkan: support multiple windows. Fixes #4363.
13ec5459 2021-08-23 00:54:13 configure: Disable Vulkan support if loadso subsystem is disabled. Fixes #4373.
9504bb12 2021-08-23 00:47:25 pulseaudio: Fix some function signatures that expect const pointers. This might have changed at some point in the Pulse API, or this might have always been wrong, but we didn't notice because the dynamic loading code hides it by casting things to void *. The static path, where it assigns the function pointer directly, puts out a clear compiler warning, though.
7e8d054b 2021-08-21 11:50:04 updated config.sub from mainstream.
e426bb80 2021-08-20 07:50:30 Fixed bug #4671 - D3D_QueueGeometry: use "count / 3" (Thanks alittlesail!)
70c23b25 2021-08-18 13:18:11 audio: pipewire: Reset hotplug atomic variables on deinit.
ae5336a3 2021-08-19 14:03:10 Fixed bug #4669: D3D_QueueGeometry: -0.5f offset position of vertexs This similar to D3D_QueueCopy positions
8270172e 2021-08-19 12:11:10 fix -Wshorten-64-to-32 warnings in android builds. see: https://github.com/libsdl-org/SDL/pull/4195#issuecomment-901506386
ccb06296 2021-08-19 03:15:02 SDL_windowsevents.c: fix build against older SDKs.
f5c0cdea 2021-08-19 01:28:10 testgeometry.c: fix build in c89 mode
ca39f6d6 2021-08-18 22:13:05 Sync wiki -> header
a8f89a01 2021-04-23 12:00:14 Change 'size_indice' to 'size_indices'
6e26d320 2021-03-16 15:09:34 Add sysrender interface
f22fc4ca 2021-03-16 15:07:44 Add API: SDL_Vertex type and SDL_RenderGeometry
bc2173ba 2021-04-06 21:49:23 Add testgeometry to draw a non uniform triangle --use-texture: an option to load icon.bmp as a texture handle mouse motion: rotate the triangle
53a2608b 2021-03-14 22:32:17 Renderer opengles2: turn color Uniform into Attribute. all attributes are copied interleaved (based on rmg-nik initial patch+ + minor clean up of data structure + add check for colorswap
53bcb3e0 2021-04-06 21:38:24 Add an option to 'testsprite2' to render slicing into triangles. [--use-rendergeometry mode1|mode2] mode1: Draw sprite2 as triangles that can be recombined as rect by software renderer mode2: Draw sprite2 as triangles that can *not* be recombined as rect by software renderer Use an 'indices' array
47db47c1 2021-04-06 21:32:02 Add SDL_HAVE_RENDER_GEOMETRY to compile or not with RenderGeometry support
b9bd9da7 2021-04-04 22:34:17 OpenGLES2: transfert color as 4 bytes, instead of 4 floats
c6ceaaeb 2021-04-04 21:32:40 METAL: use Uchar4Normalized format to transfert color as 4 bytes, instead of 4 floats
fd236af8 2021-04-02 09:37:25 Update Xcode project to add SDL_triangle.{c,h}
eff840bb 2021-04-01 23:30:59 Add OpenGLES implementation
32e79101 2021-04-01 20:27:22 Fix warnings
6e47f538 2021-04-01 20:18:05 Fix warnings
4869a3d2 2021-04-01 14:36:31 Add Direct3D9 implementation (not tested)
4ba37638 2021-04-01 12:43:39 Save and restore SDL renderer state after transforming triangles to rect
cd0663e0 2021-04-01 11:47:45 Fix declaration-after-statement and remove tabs
cd4663df 2021-04-01 11:11:12 Update D3D11 for SDL_RenderGeometryRaw
9f591707 2021-04-01 10:37:45 Update METAL backend for SDL_RenderGeometryRaw
61d9e916 2021-04-01 10:16:27 For the software renderer, try to reinterpret triangles as SDL_Rect With Dear ImGui + software renderer, it draws: - by default at 250 fps - drops to 70 fps if you show the color picker - drops to 10 fps if put the color picker fullscreen
cc37c38e 2021-04-01 09:55:00 Add SDL_RenderGeometry based on SDL_RenderGeometryRaw
e4812611 2021-04-01 09:49:16 Move to SDL_RenderGeometryRaw prototype with separate xy/uv/color pointer parameters
111c70e1 2021-03-26 09:09:08 Use 64 bits precision to prevent overflow when interpolating color / texture with wide triangles
f73c1eff 2021-03-17 09:58:49 Use normalized texture coordinates
5828cc41 2021-03-16 21:54:27 Update METAL backend: fix a typo in drawline
9eab5195 2021-03-16 16:59:18 Update dynapi files
9a8a8e65 2021-03-16 16:04:33 Update SDL_render_d3d11.c Fix D3D11 compilation
a2cd4255 2021-03-16 15:49:00 Update VisualC projects
154384a7 2021-08-18 23:59:27 Add (uintptr_t) casts
55277c67 2021-03-16 15:47:51 Update Makefiles OS2 and PSP
121114d0 2021-03-16 15:44:49 Update METAL compiled shaders
08d6a465 2021-08-18 23:57:32 Fix dynapi prototypes
2d01573b 2021-03-16 15:44:33 Add METAL shaders
1e77dae7 2021-03-16 15:44:04 Add METAL implementation
93fb5a22 2021-08-18 23:54:37 Remove '\brief' markup in header 'SDL_render.h'
1ebef073 2021-03-16 15:15:43 Add D3D11 implementation (not yet tested)
3ee511d7 2021-03-16 15:14:58 Add software renderer implementation
1670104a 2021-04-23 12:27:35 Change 'size_indice' to 'size_indices'
37f78fc1 2021-03-16 15:13:15 Add OpenGL implementation
faded41a 2021-03-16 15:11:13 Add OpenGLES2 implementation
bfa15931 2021-08-18 12:04:38 audio: pipewire: Set PW_KEY_NODE_RATE to suggest a rate. This can be used by recent pipewire to avoid resampling.
bfbab536 2021-08-16 23:07:30 remove warnings from Wundef in SDL_config.h.cmake
966728db 2021-08-16 06:43:37 include/SDL_video.h: Remove a comma at end of enumerator list
83bb1366 2021-08-15 12:41:27 Restore KMOD_RESERVED for backward compatibility Some applications check for KMOD_RESERVED but it was replaced with KMOD_SCROLL in https://github.com/libsdl-org/SDL/commit/cb1e20b058f1de55b98f32b7d16cff1f896f88dd.
b161c9ba 2021-08-14 16:30:37 CI: Add Emscripten build
402b86f2 2021-08-15 14:41:56 waylandevents: prevent segfault if xkb compose table is not found this can happen e.g. on pure wayland system where there is no X11 locales for xkbcommon to find.
72f41d1f 2021-08-14 21:11:17 Added missing parenthesis around SDL_clamp
454943cf 2021-04-11 16:44:48 emscripten: Don't flag window fullscreen on external requests Also, the condition was always true.
55af8dca 2019-02-27 14:16:37 emscripten: use emscripten_set_window_title api
d8baad7e 2019-02-27 14:15:40 emscripten: use emscripten_get_screen_size api
abc04270 2020-04-15 15:22:39 emscripten: Fix framebuffer array creation optimisation
b4f11a36 2020-04-15 14:48:52 emscripten: Drop commented out code from the dummy driver
0a870756 2021-07-08 12:47:57 Update SDL_config_emscripten.h for upstream
d4488962 2021-05-19 08:24:33 Add SDL_config_emscripten.h Currently we maintain a config file in the emscripten repo, but this seems like what other embedded/cross platforms do.
fbc36490 2021-08-14 22:29:05 Use the new SDL_clamp() macro where sensible There were a few places throughout the SDL code where values were clamped using SDL_min() and SDL_max(). Now that we have an SDL_clamp() macro, use this instead.
35c1bbfa 2021-08-13 21:43:00 SDL_stdinc.h: Add an SDL_clamp() function Add a function to clamp a value to a range. SDL_clamp(x, a, b) is equivalent to SDL_min(a, SDL_max(x, b)): it ensures that x is not smaller than a, nor larger than b. While, as best I can tell, this isn't actually standardised anywhere, it's a very useful function/macro to have.
07a2d71e 2021-03-30 11:56:38 emscripten: Feed silence to device when paused
dcc5eef0 2021-08-14 00:31:46 Clarify that one of the PIDs of the Xbox Elite Series 2 controller is used in Bluetooth mode
91a55a02 2021-08-13 23:59:39 Relative mouse motion is delivered to the window with keyboard focus This was the original intent (note SDL_UpdateWindowGrab() in SDL_OnWindowFocusGained() and SDL_OnWindowFocusLost()) and fixes a bug where relative motion unexpectedly stops if the task bar is covering the bottom of the game window and the mouse happens to move over it while relative mode is enabled. Another alternative would be to confine the mouse when relative mode is enabled, but that generates mouse motion which would need to be ignored, and it's possible for the user moving the mouse to combine with the mouse moving into the confined area so you can't easily tell whether to ignore the mouse motion. See https://github.com/libsdl-org/SDL/issues/4165 for a case where this is problematic.
69477151 2021-08-13 23:45:01 Get the window size for the window receiving the mouse motion This is the mouse focus except in the case where relative motion is enabled and the mouse is over a window floating on top of the application window (e.g. the taskbar)
6a1e1ed9 2021-08-13 23:36:13 Relative mouse mode grab is based on the window with the input focus This fixes restoring the cursor clip rectangle after the mouse has moved off of the window. Also try to better synchronize cursor visibility with mouse position changes when changing relative mode. This doesn't work perfectly, but it seems to improve things on Windows.
e42e9a12 2021-08-13 20:48:56 Fixed build
441fbcaa 2021-08-13 20:48:54 Added HIDAPI support for the Xbox Adaptive Controller
b5e5c1ef 2021-08-13 17:53:39 Added Ctrl-T to toggle topmost mode in test programs
4d9efcb5 2021-08-13 11:52:25 Fixed flag test for boolean correctness
b28ed028 2021-08-13 11:39:41 Don't warp the mouse for relative mode when the window doesn't have focus
629e9f82 2021-08-13 11:06:43 Fixed return value of SDL_GetGrabbedWindow() when we have an internal grab because of mouse relative mode
6aa1498b 2021-08-13 11:03:19 This assert wasn't correct, we set the internal grab for mouse relative mode as well.
105f1206 2021-08-13 21:25:35 checkkeys: Create a renderer for window display on Wayland On Wayland -- or at least on some Wayland implementations -- windows aren't shown until something has been rendered into them. For the 'checkkeys' test program, this means that keyboard input isn't registered, making the program rather useless. By creating a renderer and presenting once, the window is properly displayed, and the test behaves as it does under X11 (including XWayland). The exact same thing was done with testmessge in 1cd97e2695 (PR #4252)
907943a2 2021-08-12 17:51:08 Added support for the Xbox One S Controller with 5.x series firmware
1e921352 2021-08-13 07:58:48 Improve portability of SDL_Convert51ToStereo_AVX Don't rely on checking __clang_major__ since it is not comparable between different vendors. Don't use "#pragma clang attribute" since it is only available in relatively recent versions, there's no obvious way to check if it's supported, and just using __attribute__ directly (for gcc as well) results in simpler code anyway.
9bf65575 2021-08-13 06:36:49 Correctly check for bswap builtins before using The __clang_major__ and __clang_minor__ macros provide a marketing version, which is not necessarily comparable for clang distributions from different vendors[1]. In practice, the versioning scheme for Apple's clang is indeed completely different to that of the llvm.org releases. It is thus preferable to check for features directly rather than comparing versions. In this specific case, __builtin_bswap16 was being used with older Apple clang versions that don't support it. [1] https://clang.llvm.org/docs/LanguageExtensions.html#builtin-macros
7aec0b90 2021-08-13 01:56:56 SDL_hidapi_xboxone.c: fix bogus 'uninitialized' warning from clang. The last 'size == 50' check is always true anyway.
cec5a129 2021-08-12 15:49:33 Fixed libudev hotplug notifications in the HIDAPI driver