Manuel Alfayate Corchete
21003b7db2
[KMS/DRM] Small refactoring on the SwapWindow function.
2020-12-31 14:31:29 +01:00
Manuel Alfayate Corchete
e1fb969b76
[KMS/DRM] Correct comments about last bugfix.
2020-12-31 01:40:15 +01:00
Manuel Alfayate Corchete
e34caa9779
[KMS/DRM] Correct EGL/GL library loading on window creation, thus saving window re-creation.
2020-12-31 01:31:57 +01:00
Sylvain Becker
d81fe9239f
SDL_BlitScaled: remove un needed -1 +1 offset in calculation
2020-12-30 22:03:32 +01:00
Ozkan Sezer
8476df3e31
SDL_mixer.c: remove calls to non-existing m68k asm code.
2020-12-30 23:55:10 +03:00
Ozkan Sezer
5b2e011e6d
SDL_endian.h: minor fixes from SDL-1.2 branch
...
( forward-port of changesets 3909:6832b00d3594 and 5657:529d23724144 )
2020-12-30 23:55:02 +03:00
Sam Lantinga
5aba082703
Build SDL for Mac hardware when targeting iOS
2020-12-30 11:38:51 -08:00
Sylvain Becker
590a5469ed
Fixed bug 5424 - Renderer doesn't use entirely the viewport when scaling is used
...
Viewport/Clip dimensions are calculated usingg SDL_ceil whereas all renders use SDL_floor
2020-12-30 16:12:14 +01:00
Ozkan Sezer
a88071deb5
configure.ac: directfb dynamic loading support updates:
...
put back sed on find_lib result, remove debug messages,
fix directfb_lib report to user.
2020-12-30 15:55:00 +03:00
Ozkan Sezer
f24cc903a2
remove CFLAGS save/restores from dbus.h and ibus.h header checks.
...
CPPFLAGS is what AC_CHECK_HEADER needs.
2020-12-30 15:53:56 +03:00
Ozkan Sezer
88eaf356a7
minor update to test/acinclude.m4 (pkg.m4)
2020-12-30 15:53:20 +03:00
Ozkan Sezer
92edee2324
SDL_config_android.h: update SIZEOF_VOIDP define to respect __LP64__
2020-12-30 01:28:02 +03:00
Ozkan Sezer
7c105f12d5
updates to SDL_config_os2.h
2020-12-30 01:21:10 +03:00
Ozkan Sezer
1cdc1d4890
SDL_config.h.cmake, SDL_config.h.in: update for SIZEOF_VOIDP define
2020-12-30 01:00:24 +03:00
Ozkan Sezer
9fc139dfb5
SDL_config_windows.h: add missing HAVE_STRTOULL along side HAVE_STRTOLL
2020-12-30 01:00:24 +03:00
Ozkan Sezer
b76b81b0e4
SDL_config.h.cmake, SDL_config.h.in: add os/2 driver defines
...
in case autofoo or cmake is used for it some day..
2020-12-30 01:00:24 +03:00
Ozkan Sezer
8a32ee24db
removed MSVC strtok_s use from SDL_strtokr().
...
no other ??_s are used elsewhere in SDL_stdinc. besides, C11 has a
strtok_s with a different signature.
2020-12-30 01:00:24 +03:00
Sam Lantinga
0684572ccc
Added a hint to control whether the player LEDs should be lit to indicate which player is associated with a PS5 controller.
2020-12-29 12:13:10 -08:00
Ozkan Sezer
6116ccf035
fix configure warnings when checking dbus/dbus.h and ibus-1.0/ibus.h
...
.. by adding DBUS_CFLAGS and IBUS_CFLAGS to CPPFLAGS:
configure: WARNING: dbus/dbus.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: dbus/dbus.h: proceeding with the compiler's result
configure: WARNING: ibus-1.0/ibus.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: ibus-1.0/ibus.h: proceeding with the compiler's result
2020-12-29 21:20:28 +03:00
Ozkan Sezer
f175824172
config.sub, config.guess: go back to backtick `..` substitutions.
...
see e.g. https://lists.gnu.org/archive/html/config-patches/2020-12/msg00000.html
2020-12-29 20:51:10 +03:00
Sylvain Becker
80cf8a8b76
SDL_BlitScaled: also prevent crash if dest width or height is negative
2020-12-29 17:29:31 +01:00
Sylvain Becker
f08b9a5b6b
SDL_BlitScaled: prevent crash if dest width or height is 0
2020-12-29 16:02:52 +01:00
Manuel Alfayate Corchete
427c96ec11
[KMS/DRM] Rework some functions.
2020-12-29 14:24:38 +01:00
Sam Lantinga
67f0b9b86d
Fixed bug 5418 - Add system features detection for Elbrus (E2K)
...
Ivan Kuzmenko
MCST Elbrus 2000 (E2K, https://en.wikipedia.org/wiki/Elbrus_2000 ) is a russian processor architecture based on VLIW/EPIC instruction set (like Intel Itanium (IA-64) architecture). Architecture has half native / half software support of most Intel/AMD SIMD (e.g. MMX/SSE/SSE2/SSE3/SSSE3/SSE4.1/SSE4.2/AES/AVX/AVX2 & 3DNow!/SSE4a/XOP/FMA4).
It also has built-in x86/x86_64 <-> e2k binary translators (RTC, http://www.mcst.ru/rtc and Lintel, http://www.mcst.ru/lintel ) that can run code for x86/x86_64 architecture (Transmeta did something similiar with their Crusoe series) with SIMD extensions support.
Attached patch allows SDL2 to detect extensions supported by E2K like MMX, 3dNOW!, AVX etc. (test/testplatform log: https://termbin.com/7qs3 ).
2020-12-28 20:58:47 -08:00
Ozkan Sezer
8eae956c98
regenerated configure
2020-12-29 00:00:56 +03:00
Sam Lantinga
3cb0e840e6
Fixed bug 5422 - KMSDRM_LEGACY: Add OpenBSD support
...
wahil1976
This patch adds support for OpenBSD to KMSDRM_LEGACY. Note that the patch won't be ported to the atomic KMSDRM backend because OpenBSD does not support atomic KMS properly yet.
2020-12-28 11:47:53 -08:00
Joel Linn
8fc0baad98
Add SDL_cond implementation using Windows Condition Variables
...
Is automatically used when the SRW SDL_mutex implementation is active.
Otherwise falls back to the generic implementation.
v2: - Rebase onto master fa3ea1051a4b
2020-12-28 11:43:11 -08:00
Joel Linn
2443e51e0e
Add optional suffix `_generic` to generic SDL_cond impl
...
Allows for runtime selectable implementation
2020-12-28 11:42:49 -08:00
Manuel Alfayate Corchete
7539ac8087
[KMS/DRM] Restore hacky code to point to TTY buffer on surface destruction b/c I lack alternatives.
2020-12-28 18:22:07 +01:00
Sylvain Becker
5dabc4d72f
Revert changeset 14590 544ac819e8b3 , does not fully fix
2020-12-28 18:17:25 +01:00
Sylvain Becker
9efdafd43d
SDL_RenderCopy: scale before doing intersection
...
this prevents drawing 1 pixel outside the screen, in letterbox mode
2020-12-28 18:07:03 +01:00
Manuel Alfayate Corchete
86b81abea6
[KMS/DRM_LEGACY] Prevent mouse cursor from staying onscreen after window destruction. Patch by Ozkan Sezer.
2020-12-28 16:19:19 +01:00
Manuel Alfayate Corchete
0feaf7d196
[KMS/DRM][Vulkan] Correct non-existing property. Remove hacky surface destruction code (TTY buffer isn't there after a Vulkan window is created).
2020-12-28 14:37:58 +01:00
Sylvain Becker
7186584b8d
fix indentation (bug 5313)
2020-12-28 10:41:37 +01:00
Ozkan Sezer
9e22f62e0d
arm64 implementations of SDL_Swap16/32 (bug #5419.)
...
patch from David Carlier.
2020-12-28 11:50:02 +03:00
Ozkan Sezer
2355dea448
revert 'arm64 implementations of SDL_Swap16/32' for now (bug #5419 )
2020-12-28 08:00:50 +03:00
Ozkan Sezer
2f99bc07e7
arm64 implementations of SDL_Swap16/32 (bug #5419.)
...
patch from David Carlier.
2020-12-28 07:20:20 +03:00
Sylvain Becker
c2735c0bb9
Better scaling fallbacks for the SW renderer (bug 5313)
2020-12-27 23:53:28 +01:00
Ozkan Sezer
a6beb2d264
SDL_PrivateLowerBlitScaled: remove unused local var 'a'
2020-12-28 01:10:02 +03:00
Sylvain Becker
30df2e4e36
Scaling fallbacks for the SW renderer (bug 5313)
2020-12-27 23:00:11 +01:00
Luca Weiss
040bd7a91b
Fix udev not detecting ID_INPUT_KEY devices when udev is not running
...
https://bugzilla.libsdl.org/show_bug.cgi?id=5308
The udev code labels devices that are found by this code with
ID_INPUT_KEY which in turn gets used by SDL to label the devices as
SDL_UDEV_DEVICE_KEYBOARD.
This was missing for the code path when udev is not running and as such
devices such as the power button of a phone was not detected as keyboard
input and no devices were emitted.
2020-12-28 00:55:28 +03:00
Sylvain Becker
f9b5f6cc0f
Forward scale mode to SW renderer (Bug 5313)
2020-12-27 20:28:24 +01:00
Ozkan Sezer
471d3c363e
fix bug #5415 -- fatal error: 'Cocoa/Cocoa.h' file not found in iOS build
2020-12-27 14:00:30 +03:00
Ozkan Sezer
a6c6e5f582
configure.ac: fix POSIX conformance issues (bug #4261.)
...
Patch from Matt Whitlock:
There are actually two distinct classes of problems at play here.
On the one hand, libsdl2's configure.ac has some POSIX conformance
issues - namely, the use of 'echo -n' and the passage of arguments
containing embedded backslashes to 'echo', neither of which is
defined by POSIX. The attached patch takes care of these issues.
2020-12-27 14:00:02 +03:00
Ozkan Sezer
9f6fddb40f
CMake: don't check for --no-undefined linker flag for OpenBSD (bug #5174 )
...
it now matches autotools.
2020-12-27 05:20:10 +03:00
Manuel Alfayate Corchete
46d31d570d
[KMS/DRM][Vulkan] Fix segfault when changing fullscren mode and permanent cursor when changing between Vulkan and GL renderers in vkQuake3. Tidy up window destruction code.
2020-12-27 00:43:06 +01:00
Joel Linn
e7c479414b
Disable WaitOnAddress SDL_sem implementation on Windows Phone
...
Apps that use the required APIs do not pass certification.
2020-12-25 17:10:02 +03:00
Joel Linn
5b64fdc9bf
thread/windows: Remove synchronization.lib from WinPhone81 dependencies
...
synch APIs are implicitly available on this platform.
2020-12-25 10:41:20 +03:00
Joel Linn
d6afc1c608
thread/windows: Statically link synchronization APIs on WINRT
...
GetModuleHandleW is not available on those platforms
---
.../WinPhone81_VS2013/SDL-WinPhone81.vcxproj | 8 ++++----
VisualC-WinRT/WinRT81_VS2013/SDL-WinRT81.vcxproj | 12 ++++++------
src/thread/windows/SDL_sysmutex.c | 12 ++++++++++++
src/thread/windows/SDL_syssem.c | 11 +++++++++++
4 files changed, 33 insertions(+), 10 deletions(-)
2020-12-25 04:00:20 +03:00
Sam Lantinga
ff913a22f4
Fixed compile warnings on platforms without hidapi support
2020-12-23 16:16:55 -08:00