Wim Taymans
8186e4b322
camera: don't use newer PipeWire cleanup features
2024-05-09 13:19:27 -07:00
Wim Taymans
2b9ac185cd
camera: improve PipeWire version checks
...
Remove the custom server version check. We can easily do this as part of
starting the hotplug loop. Check that we are at least running against a
1.0.0 server.
Log the compiled, linked, server and required versions.
Check that we are compiled and linked with the right version before using
the time symbol of a struct.
2024-05-09 13:19:27 -07:00
Wim Taymans
da06e67b1b
camera: PipeWire 24 bits formats are endianness independent
2024-05-09 13:19:27 -07:00
Wim Taymans
3c7bccfb2b
camera: clean up format table some more
...
Move the common formats outside of the ifdef
2024-05-09 13:19:27 -07:00
Wim Taymans
55d4b44441
camera: move PipeWire camera first in list
...
If it fails, we fall back to the next one, which is v4l2.
2024-05-09 13:19:27 -07:00
Wim Taymans
5d779153b2
camera: pipewire: only list formats with valid mapping
2024-05-09 13:19:27 -07:00
Wim Taymans
a340748c06
camera: add PipeWire camera support
...
The PipeWire camera will enumerate the pipewire Video/Source nodes with
their formats.
When capturing is started, a stream to the node will be created and
frames will be captured.
2024-05-09 13:19:27 -07:00
Ozkan Sezer
890ceb4ac4
SDL_stdinc.h: add fallback cases for SDL_SINT64_C and SDL_UINT64_C
...
These are needed when INT64_C and UINT64_C macros are either not
available (not likely), or guarded by __STDC_LIMIT_MACROS in C++
compilations (which is the case in many old SDKs.)
2024-05-09 20:55:56 +03:00
Ryan C. Gordon
9245084c06
SDL_video.h: Added a \sa
from SDL_GLContext to SDL_GL_CreateContext.
2024-05-09 13:51:26 -04:00
Frank Praznik
87374af0a5
cocoa: Fix the window position when resizing
...
Cocoa will resize the window from the bottom-left instead of the top-left, so the position must be preserved when setting the new size.
2024-05-09 13:46:06 -04:00
Sam Lantinga
54fb629da5
SDL_WindowFlags is now 64-bit
...
Fixes https://github.com/libsdl-org/SDL/issues/7321
2024-05-09 10:39:54 -07:00
Susko3
895586c928
Use 1u
literal for flags/masks calculation
...
Changes `1 <<` and `1<<` to use `1u`.
2024-05-09 10:29:48 -07:00
Sam Lantinga
1944c009e9
SDL_Keycode is now Uint32
2024-05-09 10:00:46 -07:00
SDL Wiki Bot
d3e28f3ab8
Sync SDL3 wiki -> header
2024-05-09 16:18:35 +00:00
Sam Lantinga
33e7238268
Clarified the meaning of the cursor hotspot (thanks @nbriggs!)
...
Fixes https://github.com/libsdl-org/sdlwiki/issues/380
2024-05-09 09:16:46 -07:00
Sam Lantinga
3947356282
Removed obsolete documentation
2024-05-09 09:01:27 -07:00
Sam Lantinga
88fc529261
Removed misleading documentation for SDL_AppEvent()
...
Fixes https://github.com/libsdl-org/SDL/issues/9731
2024-05-09 09:01:27 -07:00
SDL Wiki Bot
793622ff1c
Sync SDL3 wiki -> header
2024-05-08 21:48:12 +00:00
SDL Wiki Bot
a5e49cc4e8
Sync SDL3 wiki -> header
2024-05-08 19:36:35 +00:00
Frank Praznik
1f43c88220
time: Use a function instead of properties to retrieve the system date and time locale info
...
This allows applications to re-query the values if the system locale is changed during runtime, and better matches the other locale functions. A note is included in the documentation mentioning that this can be slow, as it has to call into OS functions.
Also allows for the removal of the init/quit time functions, as they are no longer needed.
2024-05-08 15:35:04 -04:00
Ozkan Sezer
e909c0360f
remove most of SDL_OutOfMemory() calls where SDL is the allocator.
...
Since commit 447b508a77
, SDL_malloc,
SDL_calloc, and SDL_realloc already calls SDL_OutOfMemory().
2024-05-08 20:00:50 +03:00
SDL Wiki Bot
7abc589438
Sync SDL3 wiki -> header
2024-05-08 16:56:38 +00:00
Frank Praznik
7d47d16526
kmsdrm: Report the panel orientation hint property
...
Queries the "panel orientation" property on the connector and reports it in degrees of clockwise rotation via the 'SDL.display.KMSDRM.panel_orientation' display property.
This is provided by the kernel as a hint to userspace applications, and the application itself is ultimately responsible for any required coordinate transformations needed to conform to the requested orientation.
2024-05-08 12:55:19 -04:00
Semphris
0411633bb2
Fixes and improvements for dialogs
2024-05-08 09:08:43 -07:00
Daniel Ludwig
22bcee3318
VisualC-GDK: Fix Xbox builds
2024-05-08 08:58:29 -07:00
SDL Wiki Bot
8af26cf463
Sync SDL3 wiki -> header
2024-05-08 07:53:33 +00:00
Ryan C. Gordon
e14ba41689
Some minor documentation tweaks.
2024-05-08 03:52:31 -04:00
Sam Lantinga
04be04c338
Removed mostly unused SDL_errorcode
2024-05-07 15:45:06 -07:00
Sam Lantinga
afe7c7a644
Changed SDL_ClearError() to always return 0.
...
This will provide a quick and easy way of clearing the error when a function succeeds, if we want to do that in a more widespread way.
For now we guarantee that SDL_Init() will never have an error set when it returns successfully.
Fixes https://github.com/libsdl-org/SDL/issues/8421
2024-05-07 15:45:06 -07:00
Sam Lantinga
991d28ae37
Use SDL_MessageBoxFlags and SDL_MessageBoxButtonFlags appropriately
2024-05-07 13:41:12 -07:00
Sam Lantinga
748490677c
Use SDL_RendererFlags in the API (thanks @Sackzement!)
2024-05-07 13:41:12 -07:00
Anonymous Maarten
818721fc9d
ci: disable building docs on mingw32/clang32
...
See https://github.com/msys2/MINGW-packages/pull/20085
2024-05-07 22:35:31 +02:00
SDL Wiki Bot
4928d0e479
Sync SDL3 wiki -> header
2024-05-07 19:25:31 +00:00
Sam Lantinga
aecb62e30d
Improved API consistency for flag data types
...
Flag data types are always unsigned and have the valid values following the typedef.
2024-05-07 12:24:37 -07:00
Ryan C. Gordon
1d2b00efe1
wikiheaders: A few fixes that the SDL2 branch exposed.
2024-05-07 14:23:19 -04:00
Sam Lantinga
537c62f4c1
Fixed memory leak cleaning up mouse and keyboard instances
...
Fixes https://github.com/libsdl-org/SDL/issues/9487
2024-05-07 09:26:18 -07:00
Sam Lantinga
53a45a4437
Fixed inconsistent hint names (thanks @Sackzement!)
...
Fixes https://github.com/libsdl-org/SDL/issues/9643
2024-05-07 08:47:25 -07:00
Anonymous Maarten
9aff68746f
cmake: add khronos include directories with PRIVATE visibility
2024-05-07 17:37:21 +02:00
hwsmm
7bcbc48c61
wasapi: Fix a type mismatch in QueryInterface
...
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
2024-05-07 10:27:23 -04:00
hwsmm
8252f59668
wasapi: Use IAudioClient3 if possible to make use of sample_frames
2024-05-07 10:27:23 -04:00
Susko3
56feecc17d
Fix property cleanup callback not being called on error ( #9663 )
...
The documentation for `SDL_SetPropertyWithCleanup` mentions that the cleanup function
is called upon failure. But this wasn't working in the code.
2024-05-06 14:50:28 -07:00
Sam Lantinga
01d560df50
Added a Windows mapping for the SPEEDLINK STRIKE Gamepad
...
Fixes https://github.com/libsdl-org/SDL/issues/9705
2024-05-06 10:11:26 -07:00
Miku AuahDark
86fada6faa
Android: Implement open and save file dialog.
2024-05-06 09:33:48 -07:00
SDL Wiki Bot
ea1904eda1
Sync SDL3 wiki -> header
2024-05-06 16:09:31 +00:00
Petar Popovic
45ac1a09d9
System dependent 64 bit integer suffixes
...
Added macros SDL_SINT64_C() and SDL_UINT64_C().
Integer suffixes of SDL_MAX_SINT64, SDL_MIN_SINT64, SDL_MAX_UINT64
and SDL_MIN_UINT64 are now system dependent.
2024-05-06 09:08:49 -07:00
SDL Wiki Bot
d7d3028765
Sync SDL3 wiki -> header
2024-05-06 16:06:32 +00:00
Miku AuahDark
33ae7e38d6
Android: Allow SDL_IOFromFile to open content:// URI. ( #9696 )
2024-05-06 09:05:49 -07:00
hwsmm
61c99c0da7
x11: Fix text input not being null-terminated
2024-05-06 07:51:50 -07:00
Ryan C. Gordon
353001e077
wikiheaders: Fixed LaTeX chapter list and symbol sorting.
2024-05-05 02:44:45 -04:00
Ryan C. Gordon
b181e7b1ca
wikiheaders: LaTeX output support.
...
Reference Issue #9440 .
2024-05-05 02:03:44 -04:00