Sam Lantinga
571a4b4b32
Updated macOS build requirements
...
Building the latest SDL requires at least Xcode 12.2 and the macOS 11.0 SDK.
2024-08-04 20:24:19 -07:00
Sam Lantinga
f59d66f4b1
Implemented left-justification in SDL_PrintString()
...
Fixes https://github.com/libsdl-org/SDL/issues/10310
2024-08-04 20:04:58 -07:00
SDL Wiki Bot
6212497ea3
Sync SDL3 wiki -> header
2024-08-05 03:00:45 +00:00
Sam Lantinga
795499a529
Removing a timer that isn't running is a success.
2024-08-04 20:00:13 -07:00
Sam Lantinga
b1af91e788
Clarified timer documentation
...
Fixes https://github.com/libsdl-org/SDL/issues/10079
2024-08-04 19:44:13 -07:00
Anonymous Maarten
7dfb9acb71
VisualC: add testdialog project
2024-08-05 00:07:15 +02:00
Anonymous Maarten
90757fba5d
Remove bscmake reference
...
Although BSCMAKE is still installed with Visual Studio,
it is no longer used by the IDE.
Since Visual Studio 2008, browse and symbol information is stored
automatically in a SQL Server .sdf file in the solution folder.
2024-08-04 22:16:25 +02:00
Ethan Lee
4bea89e945
Xbox buildfixes
2024-08-04 15:54:22 -04:00
Anonymous Maarten
4b3a80bb73
msbuild: add TreatWarningAsError property, and enable it on ci
2024-08-04 21:23:25 +02:00
SDL Wiki Bot
a699ff2419
Sync SDL3 wiki -> header
2024-08-04 17:49:28 +00:00
Sam Lantinga
bc1c3f826f
Added SDL_HINT_LOGGING documentation to the logging category page.
...
Fixes https://github.com/libsdl-org/SDL/issues/10335
2024-08-04 10:48:42 -07:00
SDL Wiki Bot
454c85ad51
Sync SDL3 wiki -> header
2024-08-04 17:39:54 +00:00
Sam Lantinga
6da4278d37
Clarify how to check for EOF in SDL_ReadIO() documentation.
...
Fixes https://github.com/libsdl-org/SDL/issues/8564
2024-08-04 10:37:51 -07:00
Sam Lantinga
66cb2153cc
Handle Colemak swapping of CapsLock and Backspace
...
Fixes https://github.com/libsdl-org/SDL/issues/7853
2024-08-04 10:30:19 -07:00
Sam Lantinga
c709385856
Enable events for external X11 windows
...
Fixes https://github.com/libsdl-org/SDL/issues/3825
Fixes https://github.com/libsdl-org/SDL/issues/5142
Fixes https://github.com/libsdl-org/SDL/issues/9503
2024-08-04 09:07:19 -07:00
Sam Lantinga
ef6521aee7
testnative: print events with --info event
2024-08-04 09:07:19 -07:00
Sam Lantinga
6f6f4fbfd3
Updated X11 event debugging
2024-08-04 09:07:19 -07:00
Anonymous Maarten
31b3f5ea79
ci: add GDK
2024-08-04 13:07:32 +00:00
Sam Lantinga
490f7af92b
Removed test that triggers an asan overflow warning
...
Fixes https://github.com/libsdl-org/SDL/issues/8884
2024-08-03 18:20:26 -07:00
Frank Praznik
ca2c9f680b
video: Support multiple video driver entries having the same name string
...
Allow multiple bootstrap entries for a single video driver with the same name, which internally allows preferential and fallback init conditions while hiding the implementation details from applications (e.g. applications will just see "wayland", regardless of whether it's using the preferred or fallback driver list entry).
If a driver is requested, all instances of it in the list will be tried before reporting failure, and client applications programmatically enumerating the video drivers will be presented with a deduplicated list of entries.
2024-08-03 06:55:24 -07:00
Joshua Ashton
ab916a959e
video: Only prefer Wayland if fifo-v1 and commit-timing-v1 are available
...
Wayland has a myriad of unresolved problems regarding surface suspension
blocking forever in QueuePresent/SwapBuffers when occludedand the FIFO
(vsync) implementation being fundamentally broken leading to reduced
GPU-bound performance and 'barcoding' frametimes due to swapchain
starvation.
There are two protocols used to solve these two problems together --
fifo-v1 and commit-timing-v1, which implement the commit queue on the
compositor side, and a timestamp that frames are intended to be
displayed for/discarded respectfully.
To avoid severe performance regressions for developers targeting SDL3,
only pick Wayland as the default backend when these two protocols are
supported -- otherwise fallback to X11/XWayland.
We do this by having two VideoBootStraps, one which is tests the
preferred case, "wayland_preferred" (ie. if fifo-v1 + commit-timing-v1
are available init time), and the fallback, which is just "wayland",
the same name as before, which does no such tests.
Thus, forcing with SDL_VIDEO_DRIVER=wayland will go onto the fallback
option, and pick Wayland always, as usual, so there is no behaviour
change.
In the case that X11/XWayland is not available (ie. no DISPLAY), we will
still fallback to using Wayland without these protocols available.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2024-08-03 06:55:24 -07:00
SDL Wiki Bot
cb440ec4a4
Sync SDL3 wiki -> header
2024-08-03 13:40:37 +00:00
Sam Lantinga
cd5f0d2cce
Added SDL_RectToFRect()
2024-08-03 06:40:06 -07:00
Susko3
e3cf20e1cc
Remove createSDLMainRunnable()
in favour of main()
to fix multiple issues when providing custom main/runnable code ( #10434 )
...
This allows managed applications (eg. Java, C#) to override main() to their liking.
2024-08-03 06:34:38 -07:00
SDL Wiki Bot
2f24e9c2f2
Sync SDL3 wiki -> header
2024-08-03 13:30:08 +00:00
Sam Lantinga
2c0fcf27e8
Don't use alloca() in a loop, we might overflow the stack.
2024-08-02 21:38:29 -07:00
Sam Lantinga
978e5fc4f8
Updated Xcode project for SDL_GetWindowFromEvent()
2024-08-02 20:38:50 -07:00
Sam Lantinga
f7c8d66ccb
Use the convenience function SDL_GetWindowFromEvent()
2024-08-02 20:36:35 -07:00
Sam Lantinga
8d748d64e8
Fixed compiler warning building for macOS
2024-08-02 20:27:33 -07:00
SDL Wiki Bot
b5c0921196
Sync SDL3 wiki -> header
2024-08-03 02:37:43 +00:00
Anonymous Maarten
f57c597c60
Added SDL_GetWindowFromEvent
2024-08-03 02:37:11 +00:00
Sam Lantinga
79f4de9f7e
Use SDL_PROP_APP_METADATA_IDENTIFIER_STRING for the app ID
2024-08-02 19:36:31 -07:00
Sam Lantinga
cea71fbfcc
SDL_cocoakeyboard: Fix errant semicolons in sendPendingKey and clearPendingKey definitions
...
- These are ignored by Clang but produce a warning: "semicolon before method body is ignored"
2024-08-02 18:55:30 -07:00
Sam Lantinga
2c1d40a9eb
Added an error message when SDL_GetWindowFromID() fails
2024-08-02 18:43:24 -07:00
SDL Wiki Bot
e058aa6d65
Sync SDL3 wiki -> header
2024-08-02 21:50:11 +00:00
Sam Lantinga
50492e1d03
Change the text input defaults to match the natural input experience
2024-08-02 14:49:37 -07:00
Sam Lantinga
81f8e6aba6
Added SDL_StartTextInputWithProperties()
...
This allows you to customize the text input so you can have numeric text entry, hidden passwords, etc.
Fixes https://github.com/libsdl-org/SDL/issues/7101
Fixes https://github.com/libsdl-org/SDL/issues/7965
Fixes https://github.com/libsdl-org/SDL/issues/9439
2024-08-02 14:49:37 -07:00
Sam Lantinga
5d51e3b4ab
testime: added support for multiple windows
2024-08-02 14:49:37 -07:00
Sam Lantinga
bffd35995c
Added unifont-15.1.05.hex to the Xcode project for testime
2024-08-02 14:49:37 -07:00
SDL Wiki Bot
f01d4278c6
Sync SDL3 wiki -> header
2024-08-01 20:49:00 +00:00
Sam Lantinga
31ed3665ad
Added support for high-DPI cursors and icons
...
Fixes https://github.com/libsdl-org/SDL/issues/9838
2024-08-01 13:48:28 -07:00
Sam Lantinga
94d9229ce2
Added SDL_AddSurfaceAlternateImage(), SDL_SurfaceHasAlternateImages(), SDL_GetSurfaceImages() and SDL_RemoveSurfaceAlternateImages()
...
These functions allow you to create surfaces with alternate high DPI content, and will be used for high DPI icon and cursor support.
2024-08-01 13:48:28 -07:00
Sam Lantinga
b8dc97c577
Use SDL_PremultiplySurfaceAlpha() when creating NSImages
2024-08-01 13:48:28 -07:00
Sam Lantinga
b8f3cd0a10
Added SDL_CursorData for internal cursor data
2024-08-01 13:48:28 -07:00
Sam Lantinga
22ffb487d0
Added SDL_ScaleSurface()
2024-08-01 13:48:28 -07:00
Sam Lantinga
15f68a86ff
Group the blit copy flags to simplify code
2024-08-01 13:48:28 -07:00
Ozkan Sezer
7d27a97402
d3d12.h, d3d12sdklayers.h: fix build against older mingw-w64 versions.
...
Fixes: https://github.com/libsdl-org/SDL/issues/10452 .
2024-08-01 21:45:02 +03:00
Anonymous Maarten
68fb07787b
cmake: Remove HAVE_D3D12_H from sources and introduce SDL_RENDER_D3D(11|12)
2024-08-01 17:49:02 +00:00
Anonymous Maarten
0c5bb532c3
Remove support for building a SDL3 library from gradle
2024-08-01 17:48:49 +00:00
Anonymous Maarten
349540f73f
Document the new SDL3 Android archive artifact
2024-08-01 17:48:49 +00:00