Ozkan Sezer
526f417587
updated configury to silence ac2.7x warnings with minor rearrangement.
2022-06-08 20:51:04 +03:00
Sam Lantinga
51d6d60f11
Updated to autoconf 2.71
2022-06-08 10:14:36 -07:00
Charlie Birks
e201f338d7
ci: enable CMake test for Emscripten
2022-06-08 08:09:46 -07:00
Charlie Birks
0fcfaf9e94
emscripten: use MAIN_THREAD_EM_ASM for the fb/cursor proxying
...
This is how everything else was handled and fixes undefined symbol
errors in non-threads builds.
2022-06-08 08:09:46 -07:00
chalonverse
b9c2ad8395
Added additional check for HAVE_D3D12_H and missing SDL_VIDEO_RENDER_D3D12 in SDL_config.h.cmake
2022-06-07 22:36:06 -07:00
Anonymous Maarten
298ad937c0
cmake: wrap SDL_STATIC_PIC in double quotes (aka never trust user input)
...
Suggested by @Wohlstand
2022-06-07 18:44:47 -07:00
Anonymous Maarten
ad272ac690
Set POSITION_INDEPENDENT_CODE property on SDL2 for CMake 3.0
2022-06-07 18:44:47 -07:00
chalonverse
e8d89ce28f
< should be <=
2022-06-07 17:07:33 -07:00
chalonverse
7a335df9cf
Updated CMakeLists.txt and configure.asc/script so that it checks for the required Windows SDK version before it enables the d3d12 renderer. Also fixed reported warnings in some builds.
2022-06-07 17:07:33 -07:00
Anonymous Maarten
5abd676917
Allow empty default values to the dep_option macro
2022-06-07 09:17:44 -07:00
Sylvain
2cc2260435
Fixed bug #5768 - SDL_RenderGeometry's software backend failed to render when texture coordinates are reversed
...
handle flip vertical/horizontal when reconstructing rects from triangles
2022-06-07 16:30:01 +02:00
Sam Lantinga
168b97ca32
Updated Xcode project with SDL_guid.c and controller_type.c
2022-06-07 00:33:59 -07:00
Ozkan Sezer
7e71d08ab2
regenerated configure script.
2022-06-07 04:02:50 +03:00
SDL Wiki Bot
ef4e0e921a
Sync wiki -> header
2022-06-07 00:44:04 +00:00
chalonverse
4082821822
DirectX 12 Renderer ( #5761 )
...
* DirectX 12 Renderer (27 squashed commits)
* Add missing SDL_hidapi.h of merge of SDL.vcxproj.filters
* Fixed OpenWatcom build failure
* Dynapi fix
Co-authored-by: Ryan C. Gordon <icculus@icculus.org>
2022-06-06 17:42:30 -07:00
Ozkan Sezer
63e12cf601
SDL_windows_main.c: replace CopyMemory() with SDL_memcpy()
2022-06-06 22:55:56 +03:00
Ryan C. Gordon
ec0204d243
x11: Don't use GetXftDPI() when XRandR can tell us the DPI per-output.
...
Fixes #5764 .
2022-06-06 14:39:58 -04:00
Ozkan Sezer
61115aebd3
update dynapi after the loongarch support patch
2022-06-06 19:29:56 +03:00
SDL Wiki Bot
7cd165e2d9
Sync wiki -> header
2022-06-06 15:51:04 +00:00
yuanhecai
50d8642fa3
Add optimiztion function with LSX in LoongArch
...
1. yuv420_rgb24_lsx
1. yuv420_rgba_lsx
2. yuv420_bgra_lsx
3. yuv420_argb_lsx
4. yuv420_abgr_lsx
2022-06-06 08:49:09 -07:00
yuanhecai
17f63e53f8
Add loongarch support
...
LSX and LASX are enabled by default if compiler supports them.
2022-06-06 08:49:09 -07:00
Ryan C. Gordon
9703f23663
SDL_SetHintWithPriority: actually, this test is good.
...
Otherwise, we end up calling the callback if both the old and new value
are NULL.
This reverts commit 5f25a6ea78
(and also
trims some whitespace).
2022-06-06 10:55:29 -04:00
Sam Lantinga
30cf26e089
Show the firmware version in testgamecontroller
2022-06-06 06:59:54 -07:00
Ryan C. Gordon
5f25a6ea78
Revert "SDL_SetHintWithPriority: better test if hint value has changed."
...
Actually, the original test was fine, disregard.
This reverts commit c391bdc160
.
2022-06-06 09:36:20 -04:00
Ryan C. Gordon
c391bdc160
SDL_SetHintWithPriority: better test if hint value has changed.
2022-06-06 09:31:35 -04:00
Ryan C. Gordon
55a07d91fa
SDL_SetHintWithPriority: Allow setting NULL hints.
...
Fixes #5120 .
2022-06-06 09:30:43 -04:00
Ryan C. Gordon
a236bf4f25
x11: Hook up display hotplug notifications.
...
Obviously this needs XRandR support.
Fixes #4977 .
2022-06-06 02:13:37 -04:00
Ryan C. Gordon
6b4bd5a759
test_harness: Report if zero tests to run.
...
Fixes static analysis complain about a potential malloc(0) call.
2022-06-05 09:34:54 -04:00
Christoph Reichenbach
46624b4e1d
Removed two distracting gcc-11 warnings
2022-06-05 14:11:10 +03:00
SDL Wiki Bot
3807e95029
Sync wiki -> header
2022-06-05 00:24:04 +00:00
Christoph Reichenbach
3a20274ddf
Refactoring: move GUID operations out of Joystick
...
- SDL_JoystickGUID -> SDL_GUID (though we retain a type alias)
- Operations for GUID <-> String ops are now in
src/SDL_guid.c and include/SDL_guid.h
- The corresponding Joystick operations delegate to SDL_guid.c
- Added test/testguid.c
2022-06-04 17:22:13 -07:00
Christoph Reichenbach
4e07d4722d
Build warning fixes for gcc-11.3
2022-06-04 17:41:00 +03:00
Ozkan Sezer
b359282a5c
regenerated configure script
2022-06-04 12:58:00 +03:00
Anonymous Maarten
20c76599f9
Fix MinGW SDK redist: sdl2-config.cmake needs to set SDL2_FOUND
2022-06-03 21:05:55 -07:00
Anonymous Maarten
fd3f381021
Initialize SDL_STATIC_PIC from CMAKE_POSITION_INDEPENDENT_CODE
2022-06-03 21:05:04 -07:00
Simon McVittie
65a3453b7f
build: Compile with large inode number support where possible
...
On filesystems with large inode numbers, such as overlayfs, attempting
to stat() a file on a 32-bit system using legacy syscalls can fail
with EOVERFLOW. If we opt-in to more modern "large file support"
syscalls, then source code references to functions like stat() are
transparently replaced with ABIs that support large file sizes and
inode numbers, such as stat64().
This cannot safely be done globally by Linux distributions, because
some libraries expose types like `off_t` or `struct stat` in their
ABI, meaning that enabling large file support would be an incompatible
change that would cause crashes. However, SDL appears to be careful to
avoid these types in header files, so it should be OK to enable this.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-06-03 21:03:50 -07:00
SDL Wiki Bot
3604ae1d1b
Sync wiki -> header
2022-06-04 01:52:04 +00:00
Sam Lantinga
423141bfca
Added a function to get the controller firmware version
2022-06-03 18:50:00 -07:00
Anonymous Maarten
d6143ab369
Add -Wl,-Bstatic to "sdl2-config --static-libs" output
2022-06-03 16:27:13 -07:00
Anonymous Maarten
799d39a302
Make the sdl2-config script relocatable
2022-06-03 16:27:13 -07:00
Ozkan Sezer
142a3630d3
updated watcom makefiles after 17410887d0
2022-06-04 01:10:00 +03:00
Sam Lantinga
17410887d0
Separated controller type data into a C file
2022-06-03 15:03:08 -07:00
Sam Lantinga
2b59cb900e
Added mingw package support directory to the distribution archive
2022-06-03 12:51:00 -07:00
Anonymous Maarten
f858d1305a
ci: test installed packages using CMake
2022-06-03 12:41:36 -07:00
Anonymous Maarten
96e3733a18
cmake: make Xcode's sdl2-config.cmake compatible with the one from autotools
2022-06-03 12:41:36 -07:00
Anonymous Maarten
5a8ccf4522
cmake: make VisualC's sdl2-config.cmake compatible with the one from autotools
2022-06-03 12:41:36 -07:00
Anonymous Maarten
5ec2d46f47
cmake: make SDL2Config.cmake compatible with autotools' sdl2-config.cmake
2022-06-03 12:41:36 -07:00
Anonymous Maarten
9ff8f29f43
cmake: Add mini-SDL2 CMake project to test SDL2 prefixes
2022-06-03 12:41:36 -07:00
Anonymous Maarten
67792767f5
cmake: Add CMake configuration files, meant for the prebuilt MinGW SDK
2022-06-03 12:41:36 -07:00
Anonymous Maarten
246f3ba52c
cmake: rewrite autotools' sdl2-config.cmake.in with IMPORTED targets + no more -lmingw32
2022-06-03 12:41:36 -07:00