Sylvain
7275b2b352
SDL_GetTicks64: entry added in SDL_ENABLE_OLD_NAMES
2023-01-09 21:59:50 +01:00
Sam Lantinga
5feebcdce0
SDL_AddHintCallback() now returns a standard int result instead of void
...
Fixes https://github.com/libsdl-org/SDL/issues/7035
2023-01-09 12:09:30 -08:00
Sam Lantinga
fde78d12f2
Updated copyright for 2023
2023-01-09 09:41:41 -08:00
Sam Lantinga
78ccadd5a2
Speed up processing of update-copyright.sh
2023-01-09 09:38:36 -08:00
Sam Lantinga
504bce5187
Set SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS for the virtual joystick test
2023-01-09 09:16:10 -08:00
Sam Lantinga
c663e6d568
Revert "Always allow controller events for virtual joysticks regardless of focus state"
...
This reverts commit d94f2a9ee5
.
Rather than changing behavior, we'll set SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS in the joystick tests
2023-01-09 09:05:40 -08:00
Sam Lantinga
dbd4b88abc
Generally removed generally
2023-01-09 09:04:05 -08:00
Sam Lantinga
40833d2526
Documented thread starvation issue raised in https://github.com/libsdl-org/SDL/pull/7023
2023-01-09 09:01:41 -08:00
Sam Lantinga
59308cb3e9
SDL_platform_defines.h is already included in SDL_platform.h
2023-01-09 08:40:11 -08:00
Anonymous Maarten
62297e7da5
cmake: avoid string(SUBSTRING) on short strings
...
CMake 3.1 and older throws an error when the input string is too short
2023-01-09 15:44:50 +01:00
Sylvain Becker
607ddd0e10
Merge pull request #7033 from 1bsyl/br_oldname_gettick64
...
Add oldname entry: GetTicks64() is renamed GetTicks()
2023-01-09 13:44:53 +01:00
Sylvain
4798c36197
Add oldname entry: GetTicks64() is renamed GetTicks()
2023-01-09 13:43:39 +01:00
yuanhecai
50af65a7dd
Fix loongarch64 support
...
HAS_LSX/LASX is modified as HAVE_LSX/LASX.
2023-01-09 09:11:50 +01:00
Ozkan Sezer
0d8c22acd2
cmake (CheckPTHREAD): remove _GNU_SOURCE define after bug #7026 fix
2023-01-09 01:30:37 +03:00
Sylvain
a486eeccf4
Remove one test that contains call of SDL_Quit() / SDL_Init() because it
...
conficts with the initializaion of test common.
(before it used SDL_VideoInit SDL_VideoQuit which weren't perturbated by SDL_Quit())
2023-01-08 12:39:23 -08:00
Anonymous Maarten
f91a747549
include: SDL_dynapi.h depends on platform defines
2023-01-08 21:37:54 +01:00
Sam Lantinga
d94f2a9ee5
Always allow controller events for virtual joysticks regardless of focus state
...
Refrence https://github.com/libsdl-org/SDL/pull/7024
2023-01-08 10:48:46 -08:00
Anonymous Maarten
61f76efb85
cmake: do all compile tests with -D_GNU_SOURCE=1
2023-01-08 19:07:58 +01:00
Sam Lantinga
ac99db9fc8
Fixed infinite loop shutting down WGI controllers
...
We are guaranteed that the lock will be held during shutdown, so if we are in InvokeRemoved(), it's because we're shutting down controllers and need to remove them from our internal list.
Fixes https://github.com/libsdl-org/SDL/issues/7016
2023-01-08 09:35:17 -08:00
Anonymous Maarten
f53d797cca
cmake: generate git hash using GetRevisionDescription CMake module
...
This allows the build system (ninja/make/VS) to detect whether the current
checkout git commit has changed. If so, SDL_revision.h will be updated.
2023-01-08 18:20:56 +01:00
Ozkan Sezer
d4f7b0aa0e
cmake: added missing INTERFACE to target_compile_definitions
2023-01-08 19:41:32 +03:00
Sam Lantinga
9ffeae7b58
Added a migration note for SDL_Vulkan_GetInstanceExtensions()
2023-01-08 07:59:14 -08:00
Hunter Kvalevog
a2b2464b46
SDL_Vulkan_GetInstanceExtensions: Require Vulkan
...
Document that this function will fail if the user doesn't call
SDL_Vulkan_LoadLibrary (either explicitly or via SDL_CreateWindow)
beforehand.
2023-01-08 07:55:34 -08:00
Hunter Kvalevog
0953367967
SDL_Vulkan_GetInstanceExtensions: Remove window
...
Remove the unused `window` parameter from
SDL_Vulkan_GetInstanceExtensions, which is never used by any of the
backends.
2023-01-08 07:55:34 -08:00
Anonymous Maarten
c8286fc9a2
testevdev: cannot test evdev capabilities without linux input
...
Configure with "-DSDL_LIBC=OFF" to get this configuration.
2023-01-08 07:29:40 -08:00
Anonymous Maarten
1d60030e84
cmake: add -Wformat when checking -Wformat-extra-args
...
The need for -Wformat when using -Wformat-extra-args was observed for
the msys2 mingw64 gcc toolchain.
2023-01-08 15:57:51 +01:00
Anonymous Maarten
e85e11b211
cmake: avoid adding full path to SDL_EXTRA_LIBS
...
This avoids placing e.g. -l/path/to/libX11.so in sdl3.pc when configuring with -DSDL_X11_SHARED=OFF
2023-01-08 15:57:51 +01:00
Anonymous Maarten
dfcd8d5835
cmake: remove unused function 'listtostrrev'
2023-01-08 15:57:51 +01:00
Anonymous Maarten
77025417dd
cmake: add SDL_ prefix to EXTRA_LIBS/EXTRA_LDFLAGS
2023-01-08 15:57:51 +01:00
Anonymous Maarten
bffbfa572c
cmake: rename SDL_STATIC_LIBS -> SDL_PC_STATIC_LIBS
2023-01-08 15:57:51 +01:00
Anonymous Maarten
2f1860cfc6
cmake: add sdl-shared-build-options target to collect SDL shared library flags
2023-01-08 15:57:51 +01:00
Anonymous Maarten
0003559adf
cmake: handle macos current and compatibility version through VERSION/SOVERSION properties
2023-01-08 15:57:51 +01:00
Anonymous Maarten
053c37583c
cmake: avoid modifying CMAKE_C_FLAGS
2023-01-08 15:57:51 +01:00
Anonymous Maarten
8fc445c730
cmake: SDL3 does not need -lmingw32 anymore because SDL_main has gone
2023-01-08 15:57:51 +01:00
Anonymous Maarten
562a8209d8
cmake: HAVE_LINUX_VERSION_H is unused
2023-01-08 15:57:51 +01:00
Anonymous Maarten
5555284a70
cmake: use target_compile_options to use -idirafter for khronos headers
2023-01-08 15:57:51 +01:00
Anonymous Maarten
4d9ee735fd
cmake: SIZEOF_VOIDP, LIBNAME and LIBTYPE are not used
2023-01-08 15:57:51 +01:00
Anonymous Maarten
0a4420e02f
cmake: rename cmake variables to include _PC_ as they are meant for pkgconfig file
2023-01-08 15:57:51 +01:00
Anonymous Maarten
373a6464c8
cmake: collect cflags in sdl-build-options and sdl-global-options
2023-01-08 15:57:51 +01:00
Anonymous Maarten
fb80608fff
cmake: use cmake <LANG>_VISIBILITY_PRESET property to pass -fvisibility=hidden
2023-01-08 15:57:51 +01:00
Anonymous Maarten
87af5cfc9f
cmake: HAVE_GCC_PREFERRED_STACK_BOUNDARY is not used anymore
2023-01-08 15:57:51 +01:00
Anonymous Maarten
d73b9fec1e
cmake: target_compile_definitions does not need -D prefix
2023-01-08 15:57:51 +01:00
Sylvain Becker
1277c7784d
Merge pull request #7022 from 1bsyl/br_test_mouse
...
Fix testautomation_mouse:
2023-01-08 13:44:49 +01:00
Sylvain
51ae7cc35c
Fix testautomation_mouse:
...
FLT_MIN is positive and very small. we want -FLT_MAX here.
2023-01-08 13:28:10 +01:00
Anonymous Maarten
ec14487e1d
unix/SDL_systimer.c: add ';' to statement
2023-01-08 01:04:06 +01:00
Sylvain
cbe01319e0
Fix testautomation_pixels using really invalid pixel format
2023-01-07 10:11:02 -08:00
Sylvain
76e1c7c509
Fix testautomation_pixels:
...
we can create all pixel format, including SDL_PIXELFORMAT_UNKNOWN (as before).
2023-01-07 09:46:41 -08:00
Sam Lantinga
7f0801377b
Separate wmain() and main() implementations
...
Fixes https://github.com/libsdl-org/SDL/issues/7010
2023-01-07 08:28:07 -08:00
Ozkan Sezer
ca541789ea
cmake: check for math library functions even in the absence of libm
...
(Reference issue: https://github.com/libsdl-org/SDL/issues/7011 )
2023-01-07 14:25:04 +03:00
Ozkan Sezer
5ea06f487d
cmake: fix detection of library functions when -Werror is enabled.
...
(Reference issue: https://github.com/libsdl-org/SDL/issues/7011 )
2023-01-07 14:25:04 +03:00