Sylvain Becker
92cd2c0a74
Enable creation of yuv SDL_Surfaces ( #6735 )
2022-12-02 12:53:48 -08:00
Sam Lantinga
0a3262e819
Pass the OS event timestamp for keyboard, mouse, and touch events where possible
...
Currently implemented for Windows and Apple platforms
2022-12-02 12:37:41 -08:00
Sam Lantinga
1f4cc733a1
Removed the nanosecond versions of event and thread primitive waits from the public API
...
It's not clear applications need this level of precision yet, so let's leave these private for now.
2022-12-02 12:37:41 -08:00
Sam Lantinga
e2432bbd3b
How did PS2 build without a condition variable implementation?
2022-12-02 12:37:41 -08:00
Sam Lantinga
8121bbd083
Convert ticks to 64-bit, added nanosecond precision to the API
...
Fixes https://github.com/libsdl-org/SDL/issues/5512
Fixes https://github.com/libsdl-org/SDL/issues/6731
2022-12-02 12:37:41 -08:00
Sylvain
764b899a13
Fix Conditional jump or move depends on uninitialised value(s)
...
eg ./testsprite2 --trackmem
2022-12-02 21:11:33 +01:00
Sam Lantinga
4713db1484
Commented out syntax that causes Visual Studio 2019 to complain on every edit
2022-12-02 00:43:01 -08:00
Ozkan Sezer
a3d7dd2464
SDL_sysfilesystem.c (SDL_GetBasePath): fixed the solaris code path.
...
Reference issue: https://github.com/libsdl-org/SDL/pull/6681
2022-12-02 06:23:30 +03:00
Ozkan Sezer
ab916e8a61
fixed corrupted (zero-sized) SDL3-WinRTResource_BlankCursor.cur.
...
(copied from SDL2 branch with renaming.)
2022-12-02 03:32:00 +03:00
Ozkan Sezer
bb8adf74e0
cmake/sdlchecks.cmake: make it diff smaller against SDL2
2022-12-02 03:01:02 +03:00
Frank Praznik
378b1c286a
Fix formatting on Wayland and Pipewire function signatures
...
Fixes the formatting on some function signatures that clang-format missed.
2022-12-01 15:13:28 -08:00
Sylvain Becker
ab1f4172e3
Remove SDL_GL_CONTEXT_EGL #6657 ( #6683 )
2022-12-01 14:53:37 -08:00
Sam Lantinga
7237c56499
Detect the G923 (Xbox style) and PXN V900 (PS3 mode) as wheels
2022-12-01 14:43:34 -08:00
Pierre Wendling
3c501b963d
Clang-Tidy fixes ( #6725 )
2022-12-01 13:07:03 -08:00
Sam Lantinga
c2ce44bead
More cleanup for #6619
2022-12-01 12:53:11 -08:00
Anonymous Maarten
11ef4df207
cmake: rely on targets from the main cmake script
2022-12-01 20:32:47 +01:00
Anonymous Maarten
14ffaba399
cmake: build with rpath's, they are removed on install
...
This allows to build and run tests (on Linux) linked against the shared library
2022-12-01 20:32:47 +01:00
Anonymous Maarten
1dce3f9265
ci: RISCOS is a bool
2022-12-01 20:32:47 +01:00
Anonymous Maarten
88b41c47fa
ci: do verbose PSP build
2022-12-01 20:32:47 +01:00
Sam Lantinga
a463aca0d1
Simplified SDL_CreateRGBSurface* functions
2022-12-01 08:53:14 -08:00
Sam Lantinga
1e7e25626b
Use SDL_PIXELFORMAT_RGB565, which is the most common 16-bit format
2022-12-01 08:34:41 -08:00
Sam Lantinga
a01759f8f0
Fixed 16-bit RGBA masks
2022-12-01 08:32:57 -08:00
Sam Lantinga
c30b2063e0
Clarified the migration path for SDL_CreateSurface()
2022-12-01 08:26:32 -08:00
Sylvain Becker
932f61348d
Remove mask versions of SDL_CreateRGBSurface* #6701 ( #6711 )
...
* Rename SDL_CreateRGBSurface{,From} to SDL_CreateSurface{,From}, which now takes a format parameter
2022-12-01 08:04:02 -08:00
Sylvain
778b8926b4
Small format changed (using clang-format 15.0.2-1)
2022-12-01 09:39:08 +01:00
Ozkan Sezer
45025799b7
restore SDL_malloc.c original formatting.
2022-11-30 17:28:26 -08:00
Sasha Szpakowski
b3b94cf36b
Fix xcode project after opengles renderer removal
2022-11-30 17:25:43 -08:00
Sam Lantinga
36c5d5cc65
Added support for the Logitech Cordless Precision PS3 controller
2022-11-30 17:18:00 -08:00
Sam Lantinga
4f9c2b3e2e
Added support for the HORIPAD Pro for Xbox Series X
2022-11-30 17:17:44 -08:00
Sam Lantinga
e2df0a9d5a
Re-enabled support for third party PS3 controllers
2022-11-30 17:17:15 -08:00
Sam Lantinga
27e8eb4ca8
Fixed Victrix FS Pro V2 controller hang on reboot
...
(cherry picked from commit 9e997cc787856d101656109e296c7fb481b1d934)
2022-11-30 15:39:48 -08:00
Sam Lantinga
f8c3528c55
Fixed crash if GetRectDisplayIndex() is called before SDL_VideoInit()
...
(cherry picked from commit d87048fd5a7dff55c4cb205dd29e527c9cc51225)
2022-11-30 14:38:25 -08:00
Sam Lantinga
1e2dfdb019
Removed the OpenGL ES 1.0 2D render implementation
...
In SDL3 we plan to make more use of shaders in the 2D render API, and this minimizes the number of platforms we have to consider for new features. OpenGL ES 2.0 or newer is supported on all modern iOS and Android devices.
2022-11-30 13:39:37 -08:00
Sam Lantinga
5750bcb174
Update for SDL3 coding style ( #6717 )
...
I updated .clang-format and ran clang-format 14 over the src and test directories to standardize the code base.
In general I let clang-format have it's way, and added markup to prevent formatting of code that would break or be completely unreadable if formatted.
The script I ran for the src directory is added as build-scripts/clang-format-src.sh
This fixes:
#6592
#6593
#6594
2022-11-30 12:51:59 -08:00
Ozkan Sezer
14b902faca
begin_code.h: add gcc version checks to the alloc_size attributes.
2022-11-30 11:33:32 +03:00
Ozkan Sezer
4b6390261b
begin_code.h: remove obsolete __SYMBIAN32__ handling for DECLSPEC.
2022-11-30 11:33:32 +03:00
Sam Lantinga
c5790359fd
Added precompiled header support for Visual Studio and Xcode ( #6710 )
...
Fixes https://github.com/libsdl-org/SDL/issues/6704
2022-11-29 18:34:15 -08:00
Sam Lantinga
6ca7212b75
Fixed unreachable code warning
2022-11-29 18:03:58 -08:00
Anonymous Maarten
a52327f6b8
cmake: add support for precompiled headers
2022-11-29 14:23:42 -08:00
Anonymous Maarten
e26e893daf
test: build + fix test/testgles2_sdf.c
2022-11-29 22:43:46 +01:00
Ethan Lee
f9f7db4e08
video: Prefer Wayland over X11 (take 2!)
2022-11-29 16:35:36 -05:00
David Edmundson
6d2b74db66
Support wayland fractional scale protocol
...
The new protocol adds support for more native communication of
fractional scaling.
Everything in the wayland backend already existed only our fractional
scale was calculated implicitly through a combination of output size
guesswork for fullscreen windows.
This new protocol makes that explicit, providing a more robust solution
and a solution for non-fullscreen surfaces. The fallback code is still
left in place for now whilst compositors gain support.
2022-11-29 16:35:12 -05:00
Sam Lantinga
71d5f510c6
Fixed dylib generation on macOS
...
We just build libSDL3.dylib instead of libSDL3.0.0.0.dylib with symlinks
Fixed the compatiblity vs current version, e.g.
SDL 3.20.87
@rpath/libSDL3.0.dylib (compatibility version 2001.0.0, current version 2001.87.0)
SDL 3.21.5
@rpath/libSDL3.dylib (compatibility version 2106.0.0, current version 2106.0.0)
2022-11-29 11:57:19 -08:00
Anonymous Maarten
6f20d990ad
cmake: swap VERSION and SOVERSION
2022-11-29 20:36:46 +01:00
Anonymous Maarten
ba19d3c048
cmake: remove SDL_CMAKE_DEBUG_POSTFIX option
...
Use CMAKE_DEBUG_POSTFIX instead
2022-11-29 11:29:03 -08:00
Anonymous Maarten
2d89c4680f
cmake: simplify .so and .dylib versioning
2022-11-29 11:29:03 -08:00
Ryan C. Gordon
a3225ae6de
dynapi: Abstract out the environment variable name.
2022-11-29 14:13:07 -05:00
pionere
cf0cb44df8
video: fix error messages
...
- do not overwrite error message set by SDL_InitFormat (SDL_AllocFormat)
- set proper error message (Cocoa_Metal_CreateView)
- protect against allocation failure (UIKit_Metal_CreateView)
2022-11-29 10:59:40 -08:00
Anonymous Maarten
7e7a8e76a5
cmake: move platform detection to cmake/sdl/paltform.cmake for re-use by SDL2-compat
2022-11-29 21:10:56 +03:00
Anonymous Maarten
e2060de714
cmake: use target_link_libraries to pass -Wl,--undefined=WinMain
2022-11-29 21:10:56 +03:00