Sylvain Becker
252dc85e95
Fix warnings detected on Android build
2018-12-06 09:22:00 +01:00
Ryan C. Gordon
a7563bcd3d
joystick: Removed unused variable.
2018-12-05 19:03:15 -05:00
Ryan C. Gordon
c7b713714a
Whoops, forgot to add a new source file. :/
2018-12-05 17:53:38 -05:00
Sam Lantinga
6ed76ae18f
Fixed the ROCCAT Tyon mouse showing up as a joystick on Windows
2018-12-05 14:46:03 -08:00
Ryan C. Gordon
fbead63540
joystick: Added controller config for IMS Passenger Control Unit Devices.
2018-12-05 16:55:59 -05:00
Ryan C. Gordon
2878d4f80c
egl: Don't force X11 support when testing for EGL.
...
Fixes building Wayland support on embedded systems without X11.
(TODO: maybe move the EGL test out of the X11 tests at some point, too.)
2018-12-05 16:53:15 -05:00
Ryan C. Gordon
1689e9f910
linux: Move SDL_LinuxSetThreadPriority() elsewhere to fix build.
...
Fixes Bugzilla #4393 .
2018-12-05 16:51:22 -05:00
Ryan C. Gordon
bd3ee07c83
wayland: Send SDL_TOUCH_MOUSEID mouse events for touches.
2018-12-05 16:49:38 -05:00
Sylvain Becker
6259a72636
Warnings: fix a documentation warning and missing prototypes
2018-12-05 16:13:12 +01:00
Sam Lantinga
db320e460a
Fixed the PS4 motion controls showing up as a separate game controller on Linux
2018-12-04 14:21:29 -08:00
Sylvain Becker
69c256c102
Fix comment and end of lines
2018-12-04 18:15:45 +01:00
Sylvain Becker
f64c943370
Update comment URL of USB document (HID Usage Tables 1.12)
2018-12-04 17:13:13 +01:00
Sylvain Becker
09b462044f
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).
2018-12-04 16:50:31 +01:00
Sylvain Becker
aea7e56a24
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 .
2018-12-04 12:34:45 +01:00
Ryan C. Gordon
cca9d24cde
direct3d: be more aggressive about resetting invalidated cached state.
...
Fixes Bugzilla #4402 .
2018-12-03 09:26:05 -05:00
Ryan C. Gordon
939bf1c4d8
render: fix some static analysis warnings.
2018-12-03 02:06:17 -05:00
Ryan C. Gordon
33f78eb163
direct3d: Make sure streaming textures update before being used for drawing.
...
Fixes Bugzilla #4402 .
2018-12-03 01:58:23 -05:00
Ryan C. Gordon
b744108af8
Patched to compile on C89 compilers.
2018-12-02 21:57:33 -05:00
Ryan C. Gordon
3c9361509b
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 .
2018-12-02 20:55:57 -05:00
Ryan C. Gordon
d4a21f54b8
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.
2018-12-02 02:43:32 -05:00
Ryan C. Gordon
65a7c98c6f
directfb: Updated render backend to new internal API.
...
Totally untested, beyond it now compiles again. Probably needs some fixes.
Fixes Bugzilla #4405 .
2018-12-02 02:33:06 -05:00
Sergey Zhuravlevich
583f61b202
kmsdrm: Check for resources when validating KMSDRM device in check_modesetting.
...
Fixes Bugzilla #4403 .
2018-12-01 16:31:56 -05:00
Sergey Zhuravlevich
b3ac87d559
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.
2018-12-01 13:09:00 -05:00
Ryan C. Gordon
3323b355c9
android: use cpufeatures to support SDL_HasNEON() (thanks, Sylvain!).
...
Fixes Bugzilla #4406 .
2018-12-01 12:19:11 -05:00
Ryan C. Gordon
1e4acca851
Added some detail to a Doxygen comment (thanks, Sylvain!).
2018-12-01 12:17:34 -05:00
Ryan C. Gordon
fac40f8e4c
Patched to compile on Linux with threads enabled. (whoops!)
2018-12-01 11:14:20 -05:00
Ryan C. Gordon
c4bc59a50e
Patched to compile on Linux with --disable-threads.
...
Fixes Bugzilla #4393 .
2018-12-01 10:36:26 -05:00
Sam Lantinga
f205f3a8c2
Added support for the Razer Raiju Mobile
2018-11-27 15:10:26 -08:00
Sam Lantinga
a95291c9c8
Fixed the hotspot for cursors on Raspberry Pi
2018-11-27 11:16:04 -08:00
Sam Lantinga
aea483577a
Fixed bug changing cursors on Raspberry Pi
2018-11-27 10:20:29 -08:00
Ozkan Sezer
3f0d520a49
SDL_touch.h (SDL_TouchDeviceType): remove comma at end of enumerator list.
2018-11-26 19:55:01 +03:00
Alex Szpakowski
37b1f989ce
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.
2018-11-25 22:13:09 -04:00
Sam Lantinga
7b306bf34d
Added atomics support for armv8-a (Raspberry Pi 3)
2018-11-23 21:29:42 -08:00
Sam Lantinga
bd0ae0a5dd
Do a second pass to find libraries without a single version digit after the .so
...
This finds libsndio.so.6.1 on Raspberry Pi
2018-11-23 21:11:11 -08:00
Alex Szpakowski
872936a485
metal: Fix an incorrect division.
2018-11-21 23:46:37 -04:00
Alex Szpakowski
4a58722b9f
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.
2018-11-21 23:37:23 -04:00
Sebastian Krzyszkowiak
5f98051457
wayland: ask xdg-decoration protocol extension to use server-side decorations if possible.
2018-11-04 21:08:40 +01:00
Ozkan Sezer
14e389eadc
minor update to Makefile.os2, added a test/Makefile.os2.
2018-11-20 10:55:00 +03:00
Sam Lantinga
5c5ba0e331
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 688c4a90d9/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;
2018-11-19 21:35:59 -08:00
Sam Lantinga
ac15de18bd
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?
2018-11-19 21:28:52 -08:00
Sam Lantinga
b73703b9c6
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.
2018-11-19 21:17:00 -08:00
Ozkan Sezer
d3fa42b8c4
os/2 bits for SDL_malloc.c -- from libffi
2018-11-18 19:28:20 +03:00
Ozkan Sezer
1a02403ea7
libm: Watcom defines huge=__huge: undefine it to fix build using Watcom.
2018-11-18 11:50:20 +03:00
Ozkan Sezer
ed8413c937
Makefile.os2: build libm as a static lib and add it to linkage.
...
in case it is needed some day.
2018-11-18 11:50:02 +03:00
Ryan C. Gordon
457e58c40b
opengles: Fixed compiler warnings.
2018-11-17 16:24:52 -05:00
Sam Lantinga
9719f89db2
Back out change initializing renderer blend mode incorrectly.
2018-11-17 12:12:29 -08:00
Ryan C. Gordon
fde7592ada
direct3d11: Fixed missing rendering of solid primitives.
...
Fixes Bugzilla #4388 .
2018-11-17 14:39:42 -05:00
Ryan C. Gordon
782f1685ff
Fixed a few compiler warnings.
2018-11-17 14:37:51 -05:00
Sam Lantinga
29e15ce62d
The default draw blendmode is SDL_BLENDMODE_NONE
2018-11-17 00:58:45 -08:00
Sylvain Beucler
1f6bd95110
Emscripten: make CloseAudio actually close audio
...
cf. https://bugzilla.libsdl.org/show_bug.cgi?id=4176
2018-11-15 18:22:30 +00:00