ShuangLiu1992
f4fc4719a5
fix CheckCOCOA on modern CMake
...
Modern CMake doesn't need "LANGUAGE C" for Objective-C
set_source_files_properties(${COCOA_SOURCES} PROPERTIES LANGUAGE C) should be removed fro video/cocoa/*.m as well otherwise project won't compile
see also d3cc5764c0
2022-05-21 09:53:50 -07:00
David Carlier
1f48f8cd28
SDL_TriggerBreakPoint update using builtin instead of assembly versions if available
2022-05-21 09:50:04 -07:00
Mathieu Eyraud
fe46569cce
Fix potential memory leak in SDL_AddHintCallback
2022-05-21 09:47:34 -07:00
Ivan Le Lann
e4b5afa576
fix unused variable depending on YUV format
2022-05-21 09:46:46 -07:00
Christian Rauch
e59cba95a0
add libdecor_dispatch
2022-05-21 09:40:26 -07:00
Cameron Cawley
1a1cc8028b
Use a tagged version of OpenWatcom in CI builds
2022-05-21 18:28:56 +03:00
Ryan C. Gordon
dc62fec5e9
audio: Fix locking in backends that manage their own callback threads.
...
Otherwise you might get a race where an app pauses the device, but
the audio callback still manages to run after the pause is in place.
2022-05-20 21:08:29 -04:00
Simon McVittie
a95f5a792c
test: Use install(1) more portably
...
I had assumed that only Linux users would be interested in GNOME-style
installed-tests, but in principle there's no reason why they can't be
used on non-Linux.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-05-20 22:22:20 +03:00
Ozkan Sezer
848d2008c6
test/Makefile.w32: fix minor typo
2022-05-20 21:10:56 +03:00
Sam Lantinga
b1cf322971
Fixed HIDAPI PS4 controller being picked up when running under Steam
...
Input with PS4 configuration enabled
2022-05-19 16:50:59 -07:00
Cameron Cawley
83ae1b4987
Convert the test executables to AIF in RISC OS CMake builds
2022-05-19 15:26:13 -07:00
Cameron Cawley
d2b5965894
Remove extra path separator in GetNearbyFilename
2022-05-19 15:25:49 -07:00
Ryan C. Gordon
9edd411a83
x11: send move/resize events when waiting on fullscreen change.
...
Otherwise we ignore the Configure/etc events when they come in because
the window is already in an identical state as far as SDL is concerned.
Fixes #5593 .
May also fix:
Issue #5572 .
Issue #5595 .
2022-05-19 17:19:52 -04:00
Cameron Cawley
b798e49c92
Fix build warning with MSVC
2022-05-19 23:55:24 +03:00
Simon McVittie
b0a27cb1de
Avoid unintended float -> double conversion in SDL_FRectEqualsEpsilon
...
Resolves: https://github.com/libsdl-org/SDL/issues/5691
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-05-19 11:47:03 -07:00
Cameron Cawley
f0566702c5
Fix enabling SDL_DYNAMIC_API in OpenWatcom builds
2022-05-19 20:11:10 +03:00
Cameron Cawley
3d52d04977
Remove the '_' prefix from symbol names in Windows OpenWatcom builds
2022-05-19 20:11:10 +03:00
Cameron Cawley
aa51a9791a
Run tests with OpenWatcom on CI
2022-05-19 20:11:10 +03:00
Cameron Cawley
9dfa000bc0
Initial support for building for Windows with OpenWatcom
2022-05-19 20:11:10 +03:00
Cameron Cawley
5ef36ead08
Add some missing tests to Watcom builds
2022-05-19 20:11:10 +03:00
Cameron Cawley
3066873126
Split the common code in test/Makefile.os2 into a separate file
2022-05-19 20:11:10 +03:00
Sam Lantinga
5669743a43
Make sure SDL_CaptureMouse() is only called on the main thread
...
Windows handles mouse capture on a per-thread basis, and capture must be done on the thread used to create a window.
Fixes https://github.com/libsdl-org/SDL/issues/5577
2022-05-19 09:52:47 -07:00
Ozkan Sezer
efa2e6a1ea
SDL_thread.h: use SDL_ThreadFunction for SDL_CreateThreadWithStackSize
2022-05-19 18:55:02 +03:00
Ozkan Sezer
15781a6986
dynapi: fix SDL_DYNAPI_PROC for SDL_iPhoneSetAnimationCallback()
2022-05-19 18:55:02 +03:00
Cameron Cawley
f5cf0e37f7
Remove unused and duplicate defines from SDL_dynapi_overrides.h
2022-05-19 17:23:24 +03:00
Ozkan Sezer
03ebc4397f
dynapi: add missing SDLCALL for SDL_TLSSet's dtor param.
2022-05-19 14:01:10 +03:00
Pierre Wendling
973424d9cb
Add for-each macros to clang-format.
2022-05-19 01:31:29 -07:00
Pierre Wendling
501a499180
Add clang-format on/off comments where necessary.
...
Comments were added in places where INDENT-ON/OFF comments are. Places
like stdlib's asm don't need it as clang-format doesn't try to indent it.
2022-05-19 01:31:29 -07:00
Pierre Wendling
c6a77971bd
Add a clang-format config file.
...
tmp
2022-05-19 01:31:29 -07:00
Sam Lantinga
0e6d4baa6b
Fixed compile warning on gcc 11
2022-05-19 01:23:24 -07:00
Sam Lantinga
c7dff3a22e
Attempt to get the X1 and X2 button state on X11 by using the current event state instead of direct X11 query.
2022-05-19 00:35:22 -07:00
Sam Lantinga
57130b75a9
Revert "x11: get x1/x2 button state in GetGlobalMouseState"
...
This reverts commit 3fcc2cb500
.
Button4 and Button5 are for the scrollwheel, not the extended buttons.
I don't know of a way to query the state of the extended buttons using X11.
2022-05-19 00:31:20 -07:00
Sam Lantinga
47f1cb550d
Fixed picking up the correct mapping for virtual controllers on Android
...
Fixes https://github.com/libsdl-org/SDL/issues/5662
2022-05-18 23:48:15 -07:00
Sam Lantinga
f7b774a7e0
Fixed build error on Linux if HAVE_INOTIFY isn't defined
...
Fixes https://github.com/libsdl-org/SDL/issues/5682
2022-05-18 17:59:17 -07:00
Sam Lantinga
f9a9d3c8d4
Also restore previous capture window if CaptureMouse() fails
2022-05-18 17:23:49 -07:00
Sam Lantinga
7044452dd6
Handle recursion in SDL_UpdateMouseCapture()
...
Fixes https://github.com/libsdl-org/SDL/pull/5608
2022-05-18 17:15:45 -07:00
Ozkan Sezer
dbd54dd708
adjust dynapi after commit 0cca71a
changes for SDL_qsort and SDL_bsearch
2022-05-19 03:00:04 +03:00
Sam Lantinga
e19a9a7931
Fixed a message box getting the mouse capture state out of sync
2022-05-18 15:34:07 -07:00
Cameron Cawley
622311c016
Add extra XInput structures and defines for older SDKs
2022-05-18 15:04:42 -07:00
Cameron Cawley
c8eea02071
Fix C89 build errors in Windows builds
2022-05-18 15:03:15 -07:00
Cameron Cawley
0cca71a846
Use SDLCALL for callbacks in public APIs
2022-05-18 15:01:27 -07:00
Cameron Cawley
ffab9f46b5
Avoid clashing with system headers when redefining standard library functions
2022-05-18 16:44:17 -04:00
Simon McVittie
4cb57bf199
.editorconfig: Automatically configure multiple text editors
...
See editorconfig.org for details of the format, which is understood by
multiple text editors, either directly or via plugins.
This is not comprehensive, but should cover most of the SDL codebase.
Please extend as needed.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-05-18 10:21:42 -07:00
Sam Lantinga
06aca7edaa
Fixed warping back into the window when gaining focus with warp relative mode enabled
2022-05-18 10:10:51 -07:00
Sam Lantinga
0ffd985972
Check to see if the file exists in the base path before returning it
2022-05-18 10:10:51 -07:00
pionere
c4cf63f812
improve test-configuration
...
- testkeys 'NEEDS_DISPLAY'
- 'disable' relevant tests in case DUMMY audio/video is disabled
2022-05-18 09:06:56 -07:00
Sam Lantinga
b44241ab2f
Don't send mouse events when warping in relative mode
...
This fixes games which set relative mode and then did mouse warping at the same time
Reference https://github.com/libsdl-org/SDL/issues/5609
2022-05-18 08:56:09 -07:00
pionere
ea15253220
fix GetNearbyFilename
...
- fix memory leak due to variable 'base'
- fix usage of uninitialized variable (path)
2022-05-18 08:30:34 -07:00
Ivan Epifanov
8c5bda6acd
Vita: remove Vita-specific RWOps code
2022-05-18 08:29:25 -07:00
Sam Lantinga
aa6ea607d9
Fixed whitespace
...
Whitespace inconsistencies reported in https://github.com/libsdl-org/SDL/pull/5673
2022-05-18 06:58:14 -07:00