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