kc3-lang/SDL

Branch :


Log

Author Commit Date CI Message
09b46204 2018-12-04 16:50:31 Windows: NEON detection and intrinsic includes on Visual Studio Visual Studio doesn't define __ARM_ARCH nor _ARM_NEON, but _M_ARM and _M_ARM64, so SDL_HasNEON() was bypassed. PF_ARM_NEON_INSTRUCTIONS_AVAILABLE doesn't see to be defined (but still works when defined as 19).
aea7e56a 2018-12-04 12:34:45 android: use __ARM_NEON instead of __ARM_NEON__ to include <arm_neon.h> Only __ARM_NEON is defined with Android NDK and arm64-v8a Tested on ndk-r18, ndk-r13 and also Xcode. (Visual Studio needs a different fix). Fixes Bugzilla #4409.
cca9d24c 2018-12-03 09:26:05 direct3d: be more aggressive about resetting invalidated cached state. Fixes Bugzilla #4402.
939bf1c4 2018-12-03 02:06:17 render: fix some static analysis warnings.
33f78eb1 2018-12-03 01:58:23 direct3d: Make sure streaming textures update before being used for drawing. Fixes Bugzilla #4402.
b744108a 2018-12-02 21:57:33 Patched to compile on C89 compilers.
3c936150 2018-12-02 20:55:57 direct3d: Release and NULL out vertex buffers on reset. Otherwise they are irretrievably lost on window resize, etc, which makes rendering freeze and other disasters. Fixes Bugzilla #4358.
d4a21f54 2018-12-02 02:43:32 cmake: Comment out some debug logging that can upset build environments. Something about the dashes, colons, numbers makes some builders believe this is an error message.
65a7c98c 2018-12-02 02:33:06 directfb: Updated render backend to new internal API. Totally untested, beyond it now compiles again. Probably needs some fixes. Fixes Bugzilla #4405.
583f61b2 2018-12-01 16:31:56 kmsdrm: Check for resources when validating KMSDRM device in check_modesetting. Fixes Bugzilla #4403.
b3ac87d5 2018-12-01 13:09:00 kmsdrm: uninitialized KMSDRM fixes * Search for valid encoder in connector when it doesn't have an encoder ID set. * Search for valid CRTC in resources and encoder's possible CRTCs when encoder doesn't have one set. * Select default mode if CRTC doesn't have a valid one. * Pick current_mode's W/H/Refresh Rate basing on current and valid CRTC mode, not the saved one.
3323b355 2018-12-01 12:19:11 android: use cpufeatures to support SDL_HasNEON() (thanks, Sylvain!). Fixes Bugzilla #4406.
1e4acca8 2018-12-01 12:17:34 Added some detail to a Doxygen comment (thanks, Sylvain!).
fac40f8e 2018-12-01 11:14:20 Patched to compile on Linux with threads enabled. (whoops!)
c4bc59a5 2018-12-01 10:36:26 Patched to compile on Linux with --disable-threads. Fixes Bugzilla #4393.
f205f3a8 2018-11-27 15:10:26 Added support for the Razer Raiju Mobile
a95291c9 2018-11-27 11:16:04 Fixed the hotspot for cursors on Raspberry Pi
aea48357 2018-11-27 10:20:29 Fixed bug changing cursors on Raspberry Pi
3f0d520a 2018-11-26 19:55:01 SDL_touch.h (SDL_TouchDeviceType): remove comma at end of enumerator list.
37b1f989 2018-11-25 22:13:09 metal: use a staging texture in SDL_UpdateTexture, to make sure it doesn't stomp texture data being drawn in a previous frame on the GPU.
7b306bf3 2018-11-23 21:29:42 Added atomics support for armv8-a (Raspberry Pi 3)
bd0ae0a5 2018-11-23 21:11:11 Do a second pass to find libraries without a single version digit after the .so This finds libsndio.so.6.1 on Raspberry Pi
872936a4 2018-11-21 23:46:37 metal: Fix an incorrect division.
4a58722b 2018-11-21 23:37:23 metal: SDL_RenderFillRects uses one draw call per 16k rectangles (within the given FillRects call), instead of one draw call per rectangle. Reduces CPU usage when drawing many rectangles.
14e389ea 2018-11-20 10:55:00 minor update to Makefile.os2, added a test/Makefile.os2.
5c5ba0e3 2018-11-19 21:35:59 Fixed bug 4394 - Crash in SDL_PumpEvents() after SDL_DestroyWindow() Cameron Gutman After updating to SDL 2.0.9, I got a user report that my app was crashing when closing a SDL_WINDOW_FULLSCREEN window to return to my Qt-based UI. It looks like the dead SDL window is getting a spurious updateLayer call which is causing SDL to dereference a null SDL_WindowData pointer. For some reason, this only happens when using SDL_WINDOW_FULLSCREEN and not windowed or SDL_WINDOW_FULLSCREEN_DESKTOP. I was also unsuccessful in my attempt to get a simple reproducer for this crash. The Session.cpp code is available https://github.com/moonlight-stream/moonlight-qt/blob/688c4a90d994aa23e7b0af3ffcbb8707886db780/app/streaming/session.cpp but I slightly modified it (adding a SDL_PumpEvents() call at 1179 to immediately trigger the issue, otherwise it happened when Qt next pumped the event loop). The crashing line is: NSMutableArray *contexts = data->nscontexts;
ac15de18 2018-11-19 21:28:52 Fixed bug 4392 - SDL_cpuinfo.h breaks compilation with C bool type Luke Dashjr Bug 3993 was "fixed" by #undef'ing bool. But this breaks C99's stdbool.h bool too. For example, mpv's build fails with: ../audio/out/ao_sdl.c:35:5: error: unknown type name ?bool? It seems ill-advised to be #undef'ing *anything* here - what if the code including SDL_cpuinfo.h actually wants to use altivec?
b73703b9 2018-11-19 21:17:00 Fixed bug 4391 - hid_enumerate() sometimes causes game to freeze for a few seconds Daniel Gibson Even though my game (dhewm3) doesn't use SDL_INIT_JOYSTICK, SDL_PumpEvent() calls SDL_JoystickUpdate() which ends up calling hid_enumerate() every three seconds, and sometimes on my Win7 box hid_enumerate() takes about 5 seconds, which causes the whole game to freeze for that time.
d3fa42b8 2018-11-18 19:28:20 os/2 bits for SDL_malloc.c -- from libffi
1a02403e 2018-11-18 11:50:20 libm: Watcom defines huge=__huge: undefine it to fix build using Watcom.
ed8413c9 2018-11-18 11:50:02 Makefile.os2: build libm as a static lib and add it to linkage. in case it is needed some day.
457e58c4 2018-11-17 16:24:52 opengles: Fixed compiler warnings.
9719f89d 2018-11-17 12:12:29 Back out change initializing renderer blend mode incorrectly.
fde7592a 2018-11-17 14:39:42 direct3d11: Fixed missing rendering of solid primitives. Fixes Bugzilla #4388.
782f1685 2018-11-17 14:37:51 Fixed a few compiler warnings.
29e15ce6 2018-11-17 00:58:45 The default draw blendmode is SDL_BLENDMODE_NONE
1f6bd951 2018-11-15 18:22:30 Emscripten: make CloseAudio actually close audio cf. https://bugzilla.libsdl.org/show_bug.cgi?id=4176
43d47f6b 2018-11-15 07:20:02 fix permissions
9262c0de 2018-11-14 22:38:58 software: fix blits with color mods that change during a command queue run.
2e348c1f 2018-11-14 13:37:22 Fixed bug 3193 - Dualshock 3's motion sensors overwrite analog stick maxxus The Dualshock 3's motion sensors don't seem to be reported by the call to EVIOCGBIT but they still send EV_ABS events. Because they're not reported by EVIOCGBIT they're not assigned a proper axis ids and the default of 0 is used, which is the valid id for the left analog sticks left/right axis.
1a4c0d4e 2018-11-12 19:23:49 Fixed bug 4377 - SDL_PIXELFORMAT enum is anonymous, which prevents its use in a templated function zen3d While trying to build Pixie lisp (https://github.com/pixie-lang/pixie), which uses SDL for multimedia output, the mandelbrot example won't build. The problem is that internally pixie uses a templated function to dump a value, and gcc chokes because SDL_PIXELFORMAT_RGA8888 is an anonymous enum. I solved the problem locally by changing from: enum { SDL_PIXELFORMAT_UNKNOWN, ... etc. ... SDL_PIXELFORMAT_YUYV = ... etc ... }; to: typedef enum { SDL_PIXELFORMAT_UNKNOWN, ... etc. ... SDL_PIXELFORMAT_YUYV = ... etc ... } SDL_PIXELFORMAT_ENUM; The net result of this change is that the enum containing SDL_PIXELFORMAT_* is no longer an anonymous enum and can now be used by a templated function. This local change fixes Pixie lisp for me. I did notice that you use the idiom typedef enum { ... etc ... } SDL_FOO; elsewhere in your code, so that change to SDL_PIXELFORMAT doesn't look like it would have a negative impact.
b815ad56 2018-11-12 16:42:49 Fixed bug 4366 - Compile throws a warning on RPI (Raspbian Stretch) midwan When trying to compile on a Raspberry Pi 3, running Raspbian Stretch (fully updated), a warning appears: /home/pi/projects/SDL/src/test/SDL_test_memory.c: In function ?SDL_TrackAllocation?: /home/pi/projects/SDL/src/test/SDL_test_memory.c:112:109: warning: format ?%llx? expects argument of type ?long long unsigned int?, but argument 5 has type ?unw_word_t {aka unsigned int}? [-Wformat=] snprintf(entry->stack_names[stack_index], sizeof(entry->stack_names[stack_index]), "%s+0x%llx", sym, offset);
5e153194 2018-11-12 16:34:58 Fixed bug 4367 - compatibility version decreased between 2.0.8 and 2.0.9 Joshua Root The change resulting from Bug 4208 changed the compatibility_version of libSDL2 from 9.0.0 to 1.0.0. This is simply wrong. This means that programs linked against 2.0.9 are considered by the dynamic linker to be compatible with all previous versions of libSDL2. This is not the case since new public symbols have been added. The way compatibility_version and current_version are meant to work is: * current_version increases every time the library changes in any way. * compatibility_version is increased to match current_version whenever new public symbols are added. Thus both versions should only ever increase. The solution to the Xcode project and autotools not having matching versions should have been to increase the version(s) in the Xcode project. Reference: https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/VersionInformation.html
c525ff35 2018-11-10 20:56:23 cocoa: fix building with the macOS 10.7 SDK (thanks Riccardo!) Fixes bug #4368
5029d50e 2018-11-10 16:15:48 Add SDL_TouchDeviceType enum and SDL_GetTouchDeviceType(SDL_TouchID id). Touch device types include SDL_TOUCH_DEVICE_DIRECT (a touch screen with window-relative coordinates for touches), SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE (a trackpad-style device with absolute device coordinates), and SDL_TOUCH_DEVICE_INDIRECT_RELATIVE (a trackpad-style device with screen cursor-relative coordinates). Phone screens are an example of a direct device type. Mac trackpads are the indirect-absolute touch device type. The Apple TV remote is an indirect-relative touch device type.
2196e576 2018-11-07 07:52:39 Used confflags +=, so each option can be enabled individually, if desired
44c5d803 2018-11-07 07:38:11 The Debian maintainers aren't using these rules, so enable dynamic loading of shared libraries by default for the Steam Linux Runtime
9665a508 2018-11-06 16:57:07 Added Vulkan headers version 1.1.91 Downloaded from https://github.com/KhronosGroup/Vulkan-Headers
48917e0e 2018-11-07 01:08:35 wayland: fix resizing and fullscreen toggling For starters, we need to correctly respond to 0,0 configure after unsetting fullscreen. Also, turns out that there should be no drawing calls at all in between eglSwapBuffers and wl_egl_window_resize, as otherwise EGL can already allocate a wrongly sized buffer for a next frame, so handle those together.
ed694ec6 2018-11-06 23:45:50 close_code.h: #error if included without matching begin_code.h
a60751b7 2018-11-06 20:50:24 fix bug #4362 - SDL_syswm.h with SDL_PROTOTYPES_ONLY broken in C++ mode
1dbf7dc2 2018-11-04 21:11:07 os2: Do a distclean instead of removing files manually in buildbot script.
e45ed114 2018-11-04 20:47:17 os2: Added a script for the buildbot.
5f980514 2018-11-04 21:08:40 wayland: ask xdg-decoration protocol extension to use server-side decorations if possible.
244b79e1 2018-11-04 14:31:56 metal: SDL_RenderReadPixels on macOS synchronizes the render target's texture data if it's managed, before reading from it.
c9fed272 2018-11-04 12:31:02 metal: fix the SDL_RENDERER_PRESENTVSYNC flag not being set on the renderer info on macOS, when vsync is used.
c2bba9e4 2018-11-04 12:24:05 metal: fix the size of the buffer used for constant data.
bc57ac27 2018-11-02 21:34:17 mir: Removed mir client support. Fixes Bugzilla #4288.
4026f89d 2018-11-02 18:07:11 Fixed bug 4308 - Prebuilt SDL.dll files not compiled with ASLR support (DYNAMICBASE) Cameron Gutman The current SDL 2.0.8 and the prerelease SDL 2.0.9 are compiled without the DYNAMICBASE flag to indicate that ASLR may relocate the DLL at load-time. https://docs.microsoft.com/en-us/cpp/build/reference/dynamicbase-use-address-space-layout-randomization?view=vs-2017 When I build SDL.dll myself using the VS2010 project, the DLL has the DYNAMICBASE flag set (as is the default). Similarly, MinGW-w64 also enables ASLR by default on all binaries for a couple years now (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836365)
cc39c7a0 2018-11-02 17:25:00 Fixed bug 4320 - Android remove reflection for HIDDeviceBLESteamController Sylvain Uneeded use of reflection to access connectGatt method in HIDDeviceBLESteamController.java The method is API 23 https://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#connectGatt(android.content.Context,%20boolean,%20android.bluetooth.BluetoothGattCallback,%20int)
67a94893 2018-11-02 17:22:15 Fixed bug 4319 - Android remove reflection for PointerIcon Sylvain Since SDL2 min requirement is Android SDK 26, and PointerIcon is 24. We don't need reflection to access it.
47fb450b 2018-11-02 17:18:03 Fixed bug 4315 - little Warning in Android_JNI_CaptureAudioBuffer Sylvain SDL_android.c src/core/android/SDL_android.c:1302:5: warning: variable 'br' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~~~~~~ src/core/android/SDL_android.c:1306:12: note: uninitialized use occurs here return br; ^~ src/core/android/SDL_android.c:1270:12: note: initialize the variable 'br' to silence this warning jint br; ^ Maybe we could add some basics warning flags, not to see all warnings, but so that new warnings are caught sooner. I would go for -Wall -Wextra, and some -Wno-warning for the allowed warnings.
457390fc 2018-11-01 20:24:21 metal: avoid an extra buffer allocation and GPU data copy in RunCommandQueue, it's not needed. Improves overall performance.
4e86dfd8 2018-11-01 19:49:01 metal: remove an obsolete section of a constant buffer.
0d79a8a1 2018-11-01 20:04:24 fix build using Watcom : ./src/render/SDL_render.c(2168): Error! E1054: Expression must be constant ./src/render/SDL_render.c(2168): Error! E1054: Expression must be constant ./src/render/SDL_render.c(2175): Error! E1054: Expression must be constant ./src/render/SDL_render.c(2175): Error! E1054: Expression must be constant ./src/render/SDL_render.c(2322): Error! E1054: Expression must be constant ./src/render/SDL_render.c(2322): Error! E1054: Expression must be constant ./src/render/SDL_render.c(2322): Error! E1054: Expression must be constant ./src/render/SDL_render.c(2322): Error! E1054: Expression must be constant ./src/render/SDL_render.c(2329): Error! E1054: Expression must be constant ./src/render/SDL_render.c(2329): Error! E1054: Expression must be constant ./src/render/SDL_render.c(2329): Error! E1054: Expression must be constant ./src/render/SDL_render.c(2329): Error! E1054: Expression must be constant ./src/render/software/SDL_render_sw.c(602): Error! E1054: Expression must be constant ./src/render/software/SDL_render_sw.c(602): Error! E1054: Expression must be constant ./src/render/software/SDL_render_sw.c(602): Error! E1054: Expression must be constant ./src/render/software/SDL_render_sw.c(602): Error! E1054: Expression must be constant
4659e738 2018-11-01 12:31:45 merge fallout: Patched to compile, fixed some compiler warnings, etc.
d42728ec 2018-11-01 12:35:00 fix NetBSD C90 build failure src/vendor/SDL2/src/joystick/bsd/SDL_sysjoystick.c:353:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] reported by 'bch' at https://discourse.libsdl.org/t/25231
329f2eb9 2018-10-31 20:17:53 Fix crash when GL_LoadFunctions()/GLES2_LoadFunctions() fails https://bugzilla.libsdl.org/show_bug.cgi?id=4350 We can't safely call GL_DestroyRenderer() until GL_LoadFunctions() succeeds because we will be missing functions that we try to use when activating the renderer for destruction if we have an GL context.
aeee424f 2018-10-31 15:16:51 Fixed bug 4349 - SDL_CreateWindow fails with KMS/DRM after upgrading Mesa to 18.2.3 Rainer Sabelka After I did an upgrade of my arch Linux installation (resulting in an update of Mesa to version 18.2.3), all my SDL2 applications which use the KMS/DRM driver stopped working. Reason: Creating a Window with SDL_CreateWindow failed because the call to EGL eglCreateWindowSurface() returns an error "EGL_BAD_MATCH". After investigating with the debugger I figured, that the configuration, which has been selected from the output of eglChooseConfig(), has an "EGL_NATIVE_VISUAL_ID" which does not match the "format" of the underlying gbm surface. The attached patch fixes the problem. It does so, by mimicking Weston's behavior. All configurations returned from eglChooseConfig() which have an visual_id different from the gbm format are discarded, and only from the remaining ones the "best" match is selected.
9af581bd 2018-10-31 15:01:20 Fixed bug 4347 - Keyboard LEDs don't work on linux console Rainer Sabelka When using SLD2 on a Linux console with the KMS/DRM video backend and Linux evdev keyboard support, the caps lock, scroll lock, and num lock leds do not work. The attached patch adds ioctls for setting the LED state in SDL_evdev_kbd.c
62494a2e 2018-10-31 15:03:41 Merge SDL-ryan-batching-renderer branch to default.
eb2536c4 2018-10-31 14:50:20 Closing SDL-ryan-batching-renderer branch.
6c029f12 2018-10-31 10:18:05 Added tag release-2.0.9 for changeset c75013b56028
c49ecf6f 2018-10-30 20:11:02 rename os2 makefile so that 'make dist' catches it; update it a bit.
da56cefa 2018-10-30 07:00:03 Fixed bug 4188 - Software renderer SDL_RenderCopyEx blits corrupt image under certain cases Sylvain Re-opening this issue. It fixes the test-case, but it introduces a regression with another bug (bug #4313). So here's a new patch that activate cropping of the source surface to solve the issue. It also reverts the wrong changeset. It prevents unneeded colorkey error message.
950f39e2 2018-10-29 19:58:59 Backed out changeset 2944045e695b, SDL_JOYSTICK_HIDAPI is only used on iOS for Steam Controller support, which is not publicly available.
e542d1a3 2018-10-29 20:18:50 winmain: Patched to compile on C89 compilers.
f434a98c 2018-10-29 20:00:03 winmain: Don't use SDL_malloc (or SDL_stack_alloc, which might be malloc). Otherwise, we are using the allocator before the app can set up its own hooks. Now we use VirtualAlloc, and WideCharToMultiByte (because SDL_iconv uses SDL_malloc, too!) to get ready to call into SDL_main. This also makes console_wmain() call into the same routines as everything else, so we don't have to deal with those allocations, too. Hopefully we end up with the same results from GetCommandLine() as we do in wargv. Fixes Bugzilla #4340.
b43f427f 2018-10-29 15:51:38 README-ios: added a note about enabling hidapi.
a5ebd4d7 2018-10-29 10:14:59 wayland: ask KDE protocol extension to use server-side decorations if possible.
df89abb2 2018-10-28 14:17:21 Fixed bug 4335 - Android NDK build error dmuratshin LOCAL_SRC_FILES shouldn't use $(LOCAL_PATH)
91820998 2018-10-28 21:36:48 Add and update include guards Include guards in most changed files were missing, I added them keeping the same style as other SDL files. In some cases I moved the include guards around to be the first thing the header has to take advantage of any possible improvements compiler may have for inclusion guards.
e381a159 2018-10-28 10:31:06 Updated Android project files and documentation
14c55ac8 2018-10-26 20:20:28 This change looks okay in the general case. If we run into problems where these events aren't dispatched (initialized on a different thread than the main thread?) we may need to create a separate thread to handle device notifications like we do with the windows joystick subsystem.
be8ef94f 2018-10-26 14:43:39 hidapi: Don't run a separate event loop for device notifications. Fixes Bugzilla #4286.
91da4963 2018-10-26 09:49:27 Added patch note for SDL_GameControllerGetPlayerIndex() and friends
b08bdc44 2018-10-26 09:27:31 Don't build SDL_JOYSTICK_HIDAPI by default on iOS If you enable this, you'll need to link with CoreBluetooth.framework and add something like this to your Info.plist: <key>NSBluetoothPeripheralUsageDescription</key> <string>MyApp would like to remain connected to nearby bluetooth Game Controllers and Game Pads even when you're not using the app.</string>
14329256 2018-10-25 16:53:14 Generalized the XInput user index into a player index
545febcf 2018-10-25 13:22:34 Fixed initializing XInput user index
9987ca69 2018-10-25 12:54:42 Added SDL_JoystickGetXInputUserIndex()
4d4e18c4 2018-10-25 12:54:39 Added vi style for the Emscripten joystick code
04761d7d 2018-10-25 11:11:02 CMakeLists.txt: set dylib version numbers properly. (bug #2915.)
b699ddc0 2018-10-23 12:40:25 Fixed reinitializing the SDL joystick subsystem on Android
f0549cc9 2018-10-23 09:10:02 fix permissions
8340b0f0 2018-10-23 01:34:03 render: Add floating point versions of various draw APIs.
b262b0eb 2018-10-22 20:50:32 Small stack allocations fall back to malloc if they're unexpectedly large.
d7fa1120 2018-10-22 14:55:47 Change our fullscreen wait logic to only wait if we need to. (thanks Rachel!)
e6068b5b 2018-10-22 14:55:45 Handle failure to load hidapi gracefully
c4918db5 2018-10-22 14:55:42 Add exception handling to Android hidapi.
ff3bb857 2018-10-22 10:55:18 joystick: Add Linux mappings for "Xbox One Wireless Controller (Model 1708)" Adds controller bindings to support the "Xbox One Wireless Controller (Model 1708)" on Linux. The Model 1708 was released in 2016 alongside the Xbox One S. It is the current model being sold by Microsoft as of writing. (October 22, 2018)