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
Anonymous Maarten
6f3474db2d
autotools: export relative path of an installed sdl2-config.cmake to the prefix root
2022-06-03 12:41:36 -07:00
Anonymous Maarten
8e13cc309e
cmake: add 'compatible interface properties' to allow enforcing SDL2 sharedness
2022-06-03 12:41:36 -07:00
Anonymous Maarten
1087eaad7e
cmake: install SDL2::SDL2test when configuring with SDL2_TEST enabled
2022-06-03 12:41:36 -07:00
Sam Lantinga
ae2cc29f8b
Make sure initial state is set correctly for the D3D renderer
...
Fixes https://github.com/libsdl-org/SDL/issues/5749
2022-06-03 09:44:34 -07:00
Sam Lantinga
345efdcb10
Wait for all the threads to actually finish before exiting
...
Fixes https://github.com/libsdl-org/SDL/issues/5748
2022-06-03 08:46:08 -07:00
David Gow
847539afeb
wayland: Only call libdecor_dispatch() if we've loaded libdecor
...
As of #5703 , we call libdecor_dispatch() in Wayland_WaitEventTimeout(),
but this will crash if we don't load libdecor, as
SDL_VideoData::shell.libdecor will be NULL.
Since we don't load libdecor if we don't intend to use it (i.e., if
should_use_libdecor returns false), this results in a crash under KDE in
almost all circumstances.
2022-06-01 08:32:13 -07:00
Sam Lantinga
7fa46ec40b
The Google Pixel fingerprint sensor also shows up on Linux when running on the phone
2022-05-31 11:11:19 -07:00
Anonymous Maarten
3c3c02518c
Add Compatible Interface Properties to VisualC and Xcode SDL2 config file
2022-05-31 00:10:55 +02:00
Anonymous Maarten
4809bd356e
Add documentation to autotoo'ls sdl2-config-version.cmake.in
2022-05-31 00:10:55 +02:00
Anonymous Maarten
774c50174c
Add CMake section to the Xcode ReadMe.txt
2022-05-31 00:10:55 +02:00
Sam Lantinga
423c7ef856
Don't set SDL2_LIBRARY, we need the Framework configuration on Apple platforms
2022-05-31 00:10:55 +02:00
Sam Lantinga
37ef6a765d
Use a full path for the framework header include path
2022-05-31 00:10:55 +02:00
Anonymous Maarten
f73c25648f
cmake: attempt to use framework in Xcode's sdl2-config.cmake
2022-05-31 00:10:55 +02:00
Anonymous Maarten
4c3d1d32a5
Use INTERFACE_INCLUDE_DIRECTORIES in Xcode's sdl2-config.cmake
2022-05-31 00:10:55 +02:00
Sam Lantinga
7c2a6ea5f2
Removed 64-bit check for Apple
...
We build the SDL framework for macOS, iOS, and tvOS, including 32-bit and 64-bit architectures. Since this file will actually be included in the framework you're linking, it should be fine to use.
2022-05-31 00:10:55 +02:00