Frank Praznik
44dc90dcc8
autotools: Add check for libdecor get min/max functions
2023-01-18 10:32:43 -08:00
Fabian Greffrath
8efa1f8fc6
add support for libsamplerate's "linear" resampling mode
...
Fixes #6998
2023-01-16 16:31:34 -05:00
Sylvain
5d1e6b28d9
SDL_test_harness: fix memory leak when generated seed
2023-01-16 10:43:28 +01:00
Sylvain
c638b4a682
SDL_CreateAudioStream: check for invalid parameters
2023-01-16 09:26:05 +01:00
Anonymous Maarten
01a4cf8a10
ci: don't require EXTRA_ prefix on input environment variables
2023-01-15 17:29:37 +01:00
Anonymous Maarten
f51f7fbb94
n3ds: fix exported libraries of n3ds
2023-01-15 17:29:37 +01:00
Jon Daniel
b47b6e02fd
fix prefix path not resolving symlinks
2023-01-15 01:30:24 +01:00
Francisco Javier Trujillo Mata
381312a02a
Use filesystem drivers
2023-01-13 09:58:33 -08:00
Frank Praznik
f836b465aa
Revert "wayland: Don't try to restore non-resizable windows"
...
This reverts commit e35c3872dc6a8f7741baba8b786b202cef7503ac.
(cherry picked from commit 180afcdf3998e5175b744d3f2d87147802809450)
2023-01-12 18:00:11 -08:00
Frank Praznik
a47a045128
wayland: Don't try to restore non-resizable windows
...
Libdecor can crash if attempting to un-maximize a window that was not set as resizable.
(cherry picked from commit e35c3872dc6a8f7741baba8b786b202cef7503ac)
2023-01-12 13:35:33 -08:00
Frank Praznik
e8ae155585
wayland: Perform a round trip when maximizing and restoring windows
...
Perform a round trip when maximizing and restoring windows so the changes have already taken effect when the associated functions return.
(cherry picked from commit 50f2eb7d41fbba7c82630e55ead4ecf9c32f4c69)
2023-01-12 13:35:20 -08:00
happyharryh
2cb422360c
Fixed the hat_map to avoid segmentation fault
...
(cherry picked from commit 57e78f4cf53b0fc84900a047120263c3c71e721c)
2023-01-12 06:56:59 -08:00
Narr the Reg
fa934dd4df
hidapi: switch: Add user calibration support
...
(cherry picked from commit 9fa55d9cabc93532cd5cf44105ec589a4db1d097)
2023-01-12 06:38:37 -08:00
Ozkan Sezer
6a52017724
SDL_dynapi.c: add extern "C" guards, just in case..
2023-01-12 14:01:02 +03:00
Francisco Javier Trujillo Mata
32fd45cf48
Using UV instead of STQ
2023-01-11 15:12:14 -08:00
Francisco Javier Trujillo Mata
c5a09ca7a9
Remove dummy flag
2023-01-11 15:12:14 -08:00
Wohlstand
b425036808
SDLAudioManager.java: Fixed the support for Android older than API 23
2023-01-10 20:15:35 -08:00
Sam Lantinga
0479df53ca
Updated copyright for 2023
2023-01-09 09:48:21 -08:00
yuanhecai
0b0d256a69
Fix loongarch64 support
...
HAS_LSX/LASX is modified as HAVE_LSX/LASX.
(cherry picked from commit 50af65a7ddf65fd685dc0e2658016f950360c473)
2023-01-09 11:14:28 +03:00
Ozkan Sezer
d09d0aaab6
cmake (CheckPTHREAD): remove _GNU_SOURCE define after bug #7026 fix
2023-01-09 01:30:50 +03:00
Anonymous Maarten
460b7b247f
cmake: do all compile tests with -D_GNU_SOURCE=1
2023-01-08 19:21:50 +01:00
Sam Lantinga
ebc2fb411f
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
(cherry picked from commit ac99db9fc8d528a79abb98a5641e0fd94aa20a9e)
2023-01-08 09:35:55 -08:00
Ozkan Sezer
0d5467a6e9
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
305e7b55bd
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
Guldoman
ad0d1e2ad5
wayland: Fallback to default cursor if chosen one wasn't found
...
(cherry picked from commit 5a4283134542d4bdb3d968a836387a750ce80517)
2023-01-06 14:55:06 -08:00
Sylvain
7bf4319eb2
fix computation of alpha in BlitRGBtoRGBPixelAlphaMMX3DNOW (see #6990 )
...
( same as BlitRGBtoRGBPixelAlphaMMX )
2023-01-06 21:24:24 +01:00
Sylvain
0ebda87425
Fixed bug #6990 : fix computation of alpha in BlitRGBtoRGBPixelAlphaMMX
2023-01-06 08:50:33 -08:00
Sam Lantinga
a099172754
Added support for the ThrustMaster eSwap PRO Controller Xbox
...
(cherry picked from commit 0357390fc2dcc7c772ac3041c1148882f6fe2137)
2023-01-03 15:24:32 -08:00
Sam Lantinga
988866ca4a
Fixed line wrapping for HID packet dump
...
(cherry picked from commit e85839cd5694a79f69ac16f48a5d845cdc62f809)
2023-01-03 15:14:00 -08:00
Sam Lantinga
2cb7a0a0bb
Added support for the ThrustMaster eSwap PRO Controller Xbox
...
(cherry picked from commit dacdb1c310d97ca3c3e6492cae0611f86b281b34)
2023-01-03 15:13:50 -08:00
Sam Lantinga
b8d5fa4aef
Improved handling of binding buttons and axes
...
(cherry picked from commit 71f3bf90edce26083056215124e65881f6c6ad26)
2023-01-03 12:50:20 -08:00
Sylvain
0a9f61fbf1
Wayland / Drag and Drop: find the current window
2023-01-03 19:07:28 +01:00
Ozkan Sezer
c7f22f0324
render/SDL_yuv_sw.c: fix build after commit d234f7a
2023-01-02 20:51:56 +03:00
Sylvain Becker
d234f7a498
SDL2: backport SDL_CalculateYUVSize() that checks for YUV size overflow ( #6972 )
2023-01-02 09:09:57 -08:00
Sylvain
2fd9e63f1a
Android: orientation, check for exact match to "Portrait". (see #6959 )
...
(Portrait is also contained in PortraitUpsideDown)
2023-01-02 09:48:26 +01:00
Sylvain
874ebed14d
Android: inverse LandscapeLeft and LandscapeRight (see #6959 )
...
LandscapeLeft has now been set to ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE and LandscapeRight to ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE in order to reflect the docs: https://wiki.libsdl.org/SDL2/SDL_HINT_ORIENTATIONS
2023-01-02 09:48:17 +01:00
Ozkan Sezer
5b904a103a
windows: more HANDLE -> HMODULE changes.
2022-12-31 08:00:20 +03:00
Ozkan Sezer
0a8f9777a7
SDL_dynapi.c: LoadLibraryA() returns HMODULE.
2022-12-30 11:11:10 +03:00
Sam Lantinga
78d3a713de
Fixed documentation for SDL_JoystickGetDeviceInstanceID
...
Fixes https://github.com/libsdl-org/SDL/issues/6946
2022-12-29 15:00:32 -08:00
Sam Lantinga
74229d4a41
Fixed keyboard scancode mapping for parenthesis
...
(thanks to @meyraud705 for tracking down the root cause!)
Fixes https://github.com/libsdl-org/SDL/issues/6787
Closes https://github.com/libsdl-org/SDL/pull/6937
(cherry picked from commit e1bd5bd071d066e7009261f96c896423f6fd8fd0)
2022-12-29 14:55:46 -08:00
Sam Lantinga
29a4c5ebc2
Fixed getting the VID/PID of a virtual joystick
...
(cherry picked from commit e40a96155fc488feaeeeb79f947eb43399faa481)
2022-12-28 12:52:17 -08:00
Sam Lantinga
903df79b2d
Make sure we match the same way when adding a mapping and looking up a mapping
...
Fixes https://github.com/libsdl-org/SDL/issues/6898
(cherry picked from commit 3db9112ef4cbb936b11f941f8a98c1704e37e140)
2022-12-27 12:21:13 -08:00
Ozkan Sezer
d47ff8ae73
SDL_thread.h: fix SDL_CreateThreadWithStackSize macro for OS/2
2022-12-27 00:14:00 +03:00
Ozkan Sezer
738442b82a
SDL_thread.h: fix beginthread param of SDL_CreateThreadWithStackSize for win32
...
(cherry-picked from commit 29ba5f5d6426f36ee84304dc8a0e111416450aab)
2022-12-27 00:11:55 +03:00
Vincent Hamm
68073c6276
Fix SDL_CreateThreadWithStackSize not passing staacksize with win32 static api
2022-12-26 11:22:41 -08:00
Sam Lantinga
920acb75c3
editorconfig: remove trailing whitespace in source code
...
(cherry picked from commit 7c67213cefd0404232ef758a1dc33751e717a3f1)
2022-12-26 10:34:45 -08:00
Sam Lantinga
3dbc6a40ae
render: only enable clipping when the rectangle is valid
...
Fixes https://github.com/libsdl-org/SDL/issues/6896
(cherry picked from commit 00f05dcf49602889733262fc810386592ff51736)
2022-12-26 10:25:23 -08:00
João Henrique
af54c82138
kmsdrm: Fix wrong check on KMSDRM_CreateWindow.
...
A previous cleanup commit inverted a statement that checked the return value of
a KMSDRM_CreateSurfaces call during KMSDRM_CreateWindow, which causes the video
backend to always fail despite success.
This commit restores the intended behavior.
Fixes: 3c501b963dd8 ("Clang-Tidy fixes (#6725 )").
(cherry picked from commit 0187209f461b84d22fc49a03369506e06448f47f)
2022-12-23 09:29:49 -08:00
Rudolf-Walter Kiss-Szakacs
232ed540db
Add SDL_HINT_WINDOWS_ENABLE_MENU_MNEMONICS.
2022-12-22 08:59:56 -08:00
Caleb Cornett
c542aef600
Fix GDK OpenGL build error
2022-12-20 23:22:55 -05:00