Sam Lantinga
28a70a5b71
Use the correct version for the \since field
2024-10-10 08:06:18 -07:00
Anthony
bf351b0b0e
Add more configChanges to Android Manifest ( #11145 )
...
The addition of layoutDirection is required to prevent the forced restart due to a locale change. Also adding grammaticalGender, fontWeightAdjustment & fontScale for good measure.
2024-10-10 07:53:34 -07:00
David Gow
9c322386bf
gpu: vulkan: Fix an uninitialised structure in SDL_BlitGPUTexture()
...
The SDL_GPUColorTargetInfo structure needs to be zeroed, as otherwise we
can end up trying to create a resolve_texture which doesn't exist,
causing a rather difficult-to-debug segfault when calling
SDL_BlitGPUTexture() with a load op of SDL_GPU_LOADOP_CLEAR.
2024-10-10 07:16:02 -07:00
Evan Hemsley
da5a1585cd
GPU: Avoid calling SDL_GetWindowSizeInPixels when possible ( #11139 )
2024-10-09 18:59:07 -07:00
SDL Wiki Bot
4707bb730e
Sync SDL3 wiki -> header
...
[ci skip]
2024-10-10 00:32:39 +00:00
Sam Lantinga
9023a199dd
Fixed crash in RLE colorkey blitting
...
Fixes Maelstrom running over sdl2-compat with SDL3
2024-10-09 12:11:21 -07:00
Sam Lantinga
f946f87f30
Don't rely on event.buttonMask being set in touchesEnded
...
Fixes https://github.com/libsdl-org/SDL/issues/11131
2024-10-09 11:35:39 -07:00
Sam Lantinga
ee9b6204cf
Updated to version 3.1.5 for development
...
We should bump the version immediately before and after release so the release version corresponds to a fixed snapshot of code.
2024-10-09 11:02:01 -07:00
SDL Wiki Bot
02f3a96476
Sync SDL3 wiki -> header
...
[ci skip]
2024-10-09 16:49:57 +00:00
Sam Lantinga
f8eac30276
Added SDL_StepBackUTF8()
2024-10-09 09:49:10 -07:00
Sam Lantinga
1f08a03794
Switched drag-n-drop logging to trace level
...
The logging is extremely verbose and covers the entire data exchange process, which is more suited to the trace level.
2024-10-09 07:35:21 -07:00
Daniel Ludwig
5b6342a00d
Default SDL_HINT_JOYSTICK_GAMEINPUT to "1" on GDK platforms
2024-10-09 07:30:13 -07:00
Daniel Ludwig
ed87e7e434
test: enable GameInput driver on GDK platforms
...
By default, it's the only driver available on Xbox, but disabled.
2024-10-09 07:30:13 -07:00
Daniel Ludwig
acb18e05b5
GPU: fix swapchain buffer size not set on Xbox
2024-10-09 07:30:13 -07:00
Sam Lantinga
ff834f7733
Removed the restrict keyword
...
It doesn't compile with older Visual Studio and I verified on godbolt.org that the way it was used here doesn't impact code generation at all.
2024-10-08 20:48:13 -07:00
Delta
8e6ead2f7b
[GPU] Added ASTC texture format support ( #11116 )
2024-10-08 18:45:04 -04:00
Ryan C. Gordon
02434cd293
emscripten: Fixes for data addresses above 2gb
...
This includes both wasm64 and wasm32 when addressing more than 2gb of memory.
Fixes : #9052
(Manually cherry-picked from 3deb07ea39
.)
2024-10-08 17:41:18 -04:00
Sam Lantinga
c34790f9f1
Fixed spacing
2024-10-08 11:49:08 -07:00
Daniel Gibson
312ecc4a52
SDL_main.h: Remove dead code for hypothetical C++ platforms
...
If WinRT returns after all, or a similarly bad platforms turns up,
the code can still be found in the git history.
But keep in mind that it then will have to be added *before* the
#if ( defined(SDL_MAIN_USE_CALLBACKS) || defined(SDL_MAIN_NEEDED) ...
case for platforms that support plain C to work correctly
2024-10-08 11:47:33 -07:00
Daniel Gibson
823b218051
Simplify code to include SDL_main_impl.h in SDL_main.h
...
Basically all platforms where SDL_main.h renames main() to SDL_main()
use the platform-specific main() (or WinMain() or whatever)
implementations in SDL_main_impl.h - and that renaming is enabled with:
#if defined(SDL_MAIN_NEEDED) || defined(SDL_MAIN_AVAILABLE) \
|| defined(SDL_MAIN_USE_CALLBACKS)
#define main SDL_main
#endif
The only exception is Android, where main() *is* renamed, but
SDL_main_impl.h isn't used, because SDL_main() is called from Java.
So I think it's cleaner and less error-prone (for adding additional
platforms that need SDL_main() in the future), to use the same check
for including SDL_main_impl.h as is used for `#define main SDL_main`
and only list the exceptions (currently Android) there explicitly.
If new platforms like Android turn up, they can easily be added there
by inserting "|| defined(SDL_PLATFORM_WEIRDPLATFORM)" right next
to the Android check.
See also https://github.com/libsdl-org/SDL/issues/11068#issuecomment-2399907535
2024-10-08 11:47:33 -07:00
Ryan C. Gordon
cba77834f2
init: Log '<unspecified>' not '(null)' if the app name isn't set.
...
Reference PR #11103 .
2024-10-08 14:30:55 -04:00
Simon McVittie
fb8244d6d9
init: Also log the SDL revision here
...
This includes the version number, unless the developer is doing
something strange with git tags.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-10-08 14:29:02 -04:00
Simon McVittie
c24f7d2453
Log app ID as SYSTEM/INFO during initialization
...
This is not shown by default, but will be shown when using
SDL_LOGGING=system=info or higher, where it will hopefully nudge app
authors towards initializing this information.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-10-08 14:29:02 -04:00
Sam Lantinga
e7ee92e822
Switched drag-n-drop logging to trace level
...
The logging is extremely verbose and covers the entire data exchange process, which is more suited to the trace level.
2024-10-08 10:56:27 -07:00
SDL Wiki Bot
d9f8474dd7
Sync SDL3 wiki -> header
...
[ci skip]
2024-10-08 17:38:17 +00:00
SDL Wiki Bot
95aaaa3232
Sync SDL3 wiki -> header
...
[ci skip]
2024-10-08 17:06:41 +00:00
Frank Praznik
158ba93d61
Update some window function documentation
...
Updates some documentation to correspond with changes made since it was originally written, clarifies some function behavior, and includes some assorted typo fixes.
2024-10-08 13:05:20 -04:00
Sam Lantinga
300daf308a
Replace SDL_TRUE/FALSE with true/false in the coccinelle script
2024-10-08 09:55:50 -07:00
Anonymous Maarten
95ab38ba15
ci: actions/cache might return a boolean as string
...
https://github.com/actions/cache/issues/1466
2024-10-08 18:53:29 +02:00
SDL Wiki Bot
7acfdfd3e7
Sync SDL3 wiki -> header
...
[ci skip]
2024-10-08 16:50:41 +00:00
SDL Wiki Bot
326ab439d7
Sync SDL3 wiki -> header
...
[ci skip]
2024-10-08 15:09:24 +00:00
Sam Lantinga
fb07ab91c6
Improved SDL_main documentation and remove extern "C" comment.
...
It turns out that this is incorrect and any C linkage is already taken care of by SDL when redefining SDL_main.
Fixes https://github.com/libsdl-org/SDL/issues/11068
2024-10-08 08:07:54 -07:00
SDL Wiki Bot
03fa9ff0b0
Sync SDL3 wiki -> header
...
[ci skip]
2024-10-08 13:59:10 +00:00
Sam Lantinga
2000ccb541
Allow linear interpolation of the font textures
...
With the recent changes to logical presentation, this is necessary for the font to look good when scaled.
Fixes https://github.com/libsdl-org/SDL/issues/11123
2024-10-07 21:43:57 -07:00
Sam Lantinga
f6fa617139
Define SDL_DIALOG_DUMMY in SDL_build_config.h as needed
2024-10-07 19:52:50 -07:00
Sam Lantinga
4627283eca
Allow building both Cocoa and dummy dialog implementations
...
This allows us to remove platformFilters from the Xcode project, which is not supported in Xcode 12.
2024-10-07 18:01:39 -07:00
Sam Lantinga
c8526532de
Changed objectVersion to 54 so Xcode 12 can load the projects (thanks @Wohlstand!)
2024-10-07 18:01:39 -07:00
Frank Praznik
2fd12b2e8a
keyboard: Note that enabling text input can also enable an IME
...
An active IME can potentially eat key events, particularly dead keys and parts of a compose sequence, so note this behavior in the documentation.
2024-10-07 19:21:34 -04:00
Sam Lantinga
81b48de3f5
Fixed VID/PID list parsing of SDL_HINT_GAMECONTROLLER_SENSOR_FUSION
...
Fixes https://github.com/libsdl-org/SDL/issues/11118
2024-10-07 16:14:57 -07:00
Sam Lantinga
5db64300b8
Fixed SDL_GetStringInteger() for values starting with '0' and '1' (thanks @DanielGibson!)
2024-10-07 15:53:38 -07:00
Sam Lantinga
7da728a642
Added support for wired XBox controllers on macOS 15.0 Sequoia
...
Fixes https://github.com/libsdl-org/SDL/issues/11002
2024-10-07 15:44:42 -07:00
Ryan C. Gordon
659f2f4b04
examples: add basic app metadata to all existing examples.
2024-10-07 17:41:15 -04:00
Ryan C. Gordon
aa534c3ac3
core: Fixed incorrect comment in core/windows/SDL_windows.h.
2024-10-07 16:55:30 -04:00
Simon McVittie
ee7f61fd9a
snake: Add extended app metadata
...
All of these are optional, but nice-to-have, and we have reasonable
values available for all of them.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-10-07 16:47:36 -04:00
Simon McVittie
ca82405d5a
snake: Add basic app metadata
...
All SDL3 applications and games should ideally have this.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-10-07 16:47:36 -04:00
rabbit-ecl
6ae5666acf
Check for VK_SUBOPTIMAL_KHR also in vkQueuePresentKHR ( #11113 )
...
This is already handled for vkAcquireNextImageKHR.
2024-10-07 13:01:10 -07:00
Sam Lantinga
06bd214af6
Fixed warnings building on Android
2024-10-07 11:11:27 -07:00
Green Sky
596fcfa6c4
fix microphone permission and feature flags being spread out
2024-10-07 10:10:18 -07:00
Naman Dixit
54e622c2e6
Use the printf vararg verification macros when compiling with clang
2024-10-06 22:19:52 -07:00
Ryan C. Gordon
fca05fa754
examples: Use SDL_Log() instead of message boxes for errors.
...
Fixes #11094 .
2024-10-06 22:38:04 -04:00