Anonymous Maarten
3d7007fb2d
testgles: ignore GLES deprecation on Apple platforms
2024-08-14 10:35:43 +00:00
Anonymous Maarten
248cb3ca9c
Fix -Wdeclaration-after-statement warnings
2024-08-14 10:35:43 +00:00
Anonymous Maarten
354a35c1d7
cmake: port back Apple changes from SDL3
2024-08-14 10:35:43 +00:00
Sam Lantinga
70890b175e
Fixed build
2024-08-13 07:39:43 -07:00
Ilya Mizus
586a2dc721
Fixed secondary screens on KMSDRM ( #10535 )
...
* Removed window movement to left top corner that breaks secondary screens on KMSDRM
(cherry picked from commit ce98550cbb
)
2024-08-13 07:20:07 -07:00
Ryan C. Gordon
155c3bb0a3
SDL_GLattr: formatted wiki documentation to be wikiheaders-friendly.
...
Reference https://github.com/libsdl-org/sdlwiki/issues/544
2024-08-12 01:23:12 -04:00
KaJe
5ecbc00f36
Add Cammus C12 VID & PID to wheel device list.
...
Add Cammus C12 in the SDL wheel list to enable wheel detection for them.
(cherry picked from commit e1571d704d
)
2024-08-09 06:48:49 -07:00
Sam Lantinga
a5bff78d81
kmsdrm: free the connector when looking for available devices
...
Fixes https://github.com/libsdl-org/SDL/issues/10499
(cherry picked from commit 1a57ea7fba
)
2024-08-08 09:29:38 -07:00
Sam Lantinga
5ca0639a42
Fixed crash when the current mouse capture window is destroyed
...
Fixes https://github.com/libsdl-org/SDL/issues/10494
(cherry picked from commit 91d97a367e
)
2024-08-07 12:28:53 -07:00
hsnovel
81252eb06d
add failsafe for querying cache line size on linux
2024-08-06 09:51:00 -07:00
Sam Lantinga
1512013320
Added detail about why a file couldn't be opened (thanks mgerhardy!)
...
Fixes https://github.com/libsdl-org/SDL/issues/10484
2024-08-06 05:45:48 -07:00
Sam Lantinga
8f5d3ca57d
Added SDL_CreateRenderer to the "see also" for SDL_RenderPresent()
2024-08-05 07:58:02 -07:00
Sam Lantinga
2efbe7fa3f
Implemented left-justification in SDL_PrintString()
...
Fixes https://github.com/libsdl-org/SDL/issues/10310
(cherry picked from commit f59d66f4b1
)
2024-08-04 20:05:41 -07:00
Anonymous Maarten
5c013a4f0d
ci: add GDK
...
SDL2 port of 31b3f5ea79
2024-08-04 17:17:43 +02:00
Anonymous Maarten
7cf3234efe
cmake: SDL2 target is not always available
2024-08-04 15:52:16 +02:00
Sam Lantinga
230f1debd0
Fixed macOS build
2024-08-01 14:11:06 -07:00
Sam Lantinga
0b6eff4167
Fixed building on macOS with OpenGL disabled
...
Fixes https://github.com/libsdl-org/SDL/issues/6226
2024-08-01 13:57:26 -07:00
Sam Lantinga
7fdf794377
Fixed crash with joystick rumble after disconnection
...
This prevents continuing a rumble after the first one fails, and fixes a long standing crash issue if rumble is started immediately before the controller is disconnected.
Thanks to @AntTheAlchemist for the key bug report that showed what was happening here.
Fixes https://github.com/libsdl-org/SDL/issues/10422
(cherry picked from commit 0a924b185d
)
2024-07-29 13:50:55 -07:00
Sam Lantinga
15c73f5bfe
Fixed whitespace
...
(cherry picked from commit 67b973b5fa
)
2024-07-29 12:52:40 -07:00
SDL Wiki Bot
eee439debe
Sync SDL2 wiki -> header
2024-07-29 19:46:06 +00:00
Ryan C. Gordon
0ba3d9862d
SDL_RWFromFile: On Apple platforms, offer a hint to not look in resource dirs.
...
Fixes #8403 .
2024-07-29 15:45:03 -04:00
Charles Cross
e306cbcbee
Updates CheckLibUDev() to match main, fixing missing HAVE_LIBUDEV
2024-07-29 07:21:14 -07:00
Ozkan Sezer
2cb2897e50
SDL_mslibc.c: revert PR/10303 changes
2024-07-28 22:47:51 +03:00
Frank Praznik
5d1ca1c8c7
wayland: Don't fail to retrieve a system cursor if no window is focused
...
Doing this can leave the cursor data in a weird, corrupt state.
(cherry picked from commit 5617ce277d
)
2024-07-27 20:30:52 -04:00
Anonymous Maarten
50a6a39dd6
cmake: use genexes for linking against apple frameworks
2024-07-27 17:13:52 +02:00
Ozkan Sezer
73066492f6
testshader.c: include stdlib.h for exit()
2024-07-22 17:40:56 +03:00
Ozkan Sezer
86b4d035db
SDL_stdinc.h (SDL_COMPILE_TIME_ASSERT): Keep C++ case alone (after PR/10331)
...
Some versions of gcc will define __STDC_VERSION__ even when compiling in C++ mode.
Reference issue: https://github.com/libsdl-org/SDL/issues/6078 which was fixed by
f6b81125b3
(cherry picked from commit 70c1012e8c
)
2024-07-22 16:02:00 +03:00
Anonymous Maarten
5d606eaae2
stdinc: c23 deprecated _Static_assert in favor of static_assert
...
(cherry picked from commit 22bfbdbc02
)
2024-07-21 21:55:10 +03:00
Charlie Birks
6e931bee01
emscripten: restore key event prevent default behaviour
...
This restores the behaviour before 9221548114
where we only preventDefault the event if:
- the key is recognised
- the event is enabled
- the event is not filtered
(ignoring the KEYPRESS special case, which is unchanged)
2024-07-19 09:39:00 -07:00
Anonymous Maarten
fd32342ced
ci: build MSVC workflows using Ninja generator
2024-07-19 10:20:11 +00:00
Anonymous Maarten
ab4370c247
cmake: detect ARM64EC and enable SDL_LIBC by default
2024-07-19 10:20:11 +00:00
Anonymous Maarten
7fb8b62a4d
cmake: fix building UWP with non-MSVC generator
2024-07-19 10:20:11 +00:00
Anonymous Maarten
11c0dfbdfe
Fix UWP build in non-UNICODE mode
2024-07-19 10:20:11 +00:00
vanfanel
5ab1151508
Fix KMSDRM double buffering.
2024-07-18 14:35:00 -07:00
vanfanel
9e6b8d56e3
Add SDL_VIDEO_DOUBLE_BUFFER support to the Wayland backend.
2024-07-17 16:36:04 -04:00
Amir
ccade50587
Fix warning for Android NDK compiler: "function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]"
...
https://stackoverflow.com/questions/42125/warning-error-function-declaration-isnt-a-prototype
In C int foo() and int foo(void) are different functions. int foo() accepts an arbitrary number of arguments, while int foo(void) accepts 0 arguments. In C++ they mean the same thing.
2024-07-17 10:51:30 -07:00
Ryan C. Gordon
3f9591babe
README-macos: fixed some text.
...
(cherry picked from commit 199e6929e5
)
2024-07-16 08:27:12 -04:00
Anonymous Maarten
256269afb3
sdl2-config.in: use backtics instead of $() for older shells
...
/bin/sh of Solaris does not understand $()
2024-07-14 19:36:46 +02:00
Anonymous Maarten
2eeb39298e
pthread: timespec.tv_nsec must be less then 1000000000 ns
2024-07-14 17:29:07 +02:00
ceski
3b7eafedb3
Add a Windows mapping for SplitFish Game Controller
...
(cherry picked from commit 68cf17d0d4
)
2024-07-12 22:04:29 -07:00
Anonymous Maarten
bc39952b23
cmake: only add SDL_LIBC=0 compile options to SDL2 libraries
2024-07-12 23:09:56 +02:00
Anonymous Maarten
a25f94c9a8
ci: run VC tests under sdlprocdump
2024-07-12 18:47:18 +02:00
Anonymous Maarten
bba51871a8
cmake: only link SDL2 against test executables
2024-07-12 18:47:18 +02:00
Sam Lantinga
b057159db7
Make sure SDL subsystems are initialized before starting threads
2024-07-12 09:09:57 -07:00
Sam Lantinga
b378bc5c83
Make sure timers are initialized before any threads start
...
This prevents race conditions and divide by zero if multiple threads start using the time functions simultaneously.
2024-07-12 08:00:04 -07:00
Sam Lantinga
b13dcf24d6
Fixed OS/2 build
2024-07-11 13:55:24 -07:00
Sam Lantinga
551164812a
Added TLS initialization and shutdown functions
...
Fixes https://github.com/libsdl-org/SDL/issues/8576
(cherry picked from commit b517043936
)
2024-07-11 13:10:15 -07:00
Ozkan Sezer
956a8bf6c0
ci: bump FreeBSD
...
Reference issue: https://github.com/libsdl-org/SDL/issues/10224 .
2024-07-11 18:55:50 +03:00
Ryan C. Gordon
663411ff77
haiku: Don't change the cwd on startup if launched from a Terminal.
...
This patch was written by @pulkomandy. Thanks!
Reference Issue #7596 .
2024-07-11 11:42:21 -04:00
Substring
a2215ff81c
KMSDRM: fix unsupported modifiers
...
(cherry picked from commit 9548bba63a
)
2024-07-10 14:42:32 -07:00