Sam Lantinga
afee27a530
Make sure stdio handles are in blocking mode
...
Standard I/O doesn't work well with non-blocking handles, so make sure any pipes are in blocking mode before launching child processes.
Fixes https://github.com/libsdl-org/SDL/issues/10998
2024-10-14 22:10:49 -07:00
Sam Lantinga
bb764e3106
Added support for full range BT.709 YUV conversion
...
Also added simple colorspace testing to testyuv.
2024-10-14 20:36:46 -07:00
SDL Wiki Bot
ce49465b13
Sync SDL3 wiki -> header
...
[ci skip]
2024-10-15 03:30:54 +00:00
Sam Lantinga
72bae5167e
Updated documentation
...
Fixes https://github.com/libsdl-org/sdlwiki/issues/616
2024-10-14 20:30:22 -07:00
Ryan C. Gordon
e254c99b38
examples/game/01-snake: Update game logic in AppIterate, don't use a timer.
...
Reference Issue #11210 .
2024-10-14 23:17:23 -04:00
Zack Middleton
edb28e79b5
Make SDL_LoadBMP() use true instead of 1
2024-10-14 20:07:03 -07:00
Zack Middleton
f212cb5f92
Don't overwrite the SDL_IOFromConstMem() error in testshape
2024-10-14 20:07:03 -07:00
Zack Middleton
51dc978785
Don't overwrite the SDL_IOFromFile() error in SDL_LoadFile()
2024-10-14 20:07:03 -07:00
Zack Middleton
fb43dc3097
Set error for NULL SDL_IOStream in SDL_LoadWAV_IO()
2024-10-14 20:07:03 -07:00
cosmonaut
00bb81de76
GPU: Allow size queries on depth formats
2024-10-14 14:28:21 -07:00
Anonymous Maarten
817fa9a975
releases: don't add static library to MinGW binary release
2024-10-14 21:30:48 +02:00
Anonymous Maarten
45dfdfbb7b
Add parametrized build script
...
[ci skip]
2024-10-14 21:30:48 +02:00
cosmonaut
57f2577c65
GPU Vulkan: Fix depth-only framebuffer leak
2024-10-14 10:19:07 -07:00
Sam Lantinga
46835650db
Added config.xcconfig to the Xcode build
2024-10-14 09:25:23 -07:00
Ozkan Sezer
9fac4b9f5f
SDL_windowsmodes.c: Fix MSVC builds against SDKs older than 10.0.17134.0
...
workaround the missing DISPLAYCONFIG_DEVICE_INFO_GET_SDR_WHITE_LEVEL enum value
and DISPLAYCONFIG_SDR_WHITE_LEVEL struct.
Fixes: https://github.com/libsdl-org/SDL/issues/11193
Closes: https://github.com/libsdl-org/SDL/pull/11205
2024-10-14 09:04:25 -07:00
SDL Wiki Bot
b865708039
Sync SDL3 wiki -> header
...
[ci skip]
2024-10-14 16:02:54 +00:00
Sam Lantinga
0b6ad8bf62
Improved the documentation for SDL_SetWindowShape()
...
Fixes https://github.com/libsdl-org/SDL/issues/11199
2024-10-14 09:02:04 -07:00
Sam Lantinga
f9d490045b
Fixed uikit crash when GLES is disabled
...
Fixes https://github.com/libsdl-org/SDL/issues/11208
2024-10-14 08:58:02 -07:00
SDL Wiki Bot
3733b1d5d8
Sync SDL3 wiki -> header
...
[ci skip]
2024-10-14 06:46:10 +00:00
Ryan C. Gordon
c20918b0fb
render: Add SDL_RenderDebugText().
...
Fixes #11201 .
2024-10-14 02:45:33 -04:00
Ryan C. Gordon
44bc19b592
test: remove testaudio-art.txt (this info is in test/LICENSE.txt now).
2024-10-14 01:52:18 -04:00
Sam Lantinga
1cc85c912b
Check return value of SDL_small_alloc()
...
Fixes https://github.com/libsdl-org/SDL/issues/8959
2024-10-13 14:07:26 -07:00
Sam Lantinga
d7be7fc168
Fixed Cohen-Sutherland out code computation for float line intersection
...
Fixes https://github.com/libsdl-org/SDL/issues/10866
2024-10-13 13:04:59 -07:00
SDL Wiki Bot
db78c0f563
Sync SDL3 wiki -> header
...
[ci skip]
2024-10-13 19:15:18 +00:00
Sam Lantinga
a8ca024495
Added SDL_GetDefaultLogOutputFunction()
...
Fixes https://github.com/libsdl-org/SDL/issues/10603
Closes https://github.com/libsdl-org/SDL/pull/11106
2024-10-13 12:14:46 -07:00
Sam Lantinga
b766c824bd
Don't overwrite the SDL_IOFromFile() error in SDL_LoadBMP()
...
Fixes https://github.com/libsdl-org/SDL/issues/11188
2024-10-13 09:37:44 -07:00
SDL Wiki Bot
aed1f76248
Sync SDL3 wiki -> header
...
[ci skip]
2024-10-13 16:27:10 +00:00
Sam Lantinga
a567786762
Added SDL_SetErrorV()
2024-10-13 09:26:25 -07:00
Sam Lantinga
d5e02474ac
Fixed SDL_oldnames.h to use the correct new names
2024-10-13 09:06:46 -07:00
capehill
1a1e2e9892
Set size parameter in SDL_GetClipboardData()
...
Update size value in case where platform uses GetClipboardText().
This should fix clipboard_testClipboardDataFunctions on those platforms.
2024-10-13 08:59:50 -07:00
Evan Hemsley
82598e5ca9
GPU Vulkan: Fix frame counter timing ( #11189 )
2024-10-12 22:02:22 -07:00
Anonymous Maarten
b641c2a0db
Refactor gendynapi.py with the final goal to make it re-usable
2024-10-13 02:52:56 +02:00
Anonymous Maarten
173c168ff4
Default functions are already declared by the first SDL_dynapi_procs.h include
2024-10-13 02:52:56 +02:00
SDL Wiki Bot
fd9f2ae5b5
Sync SDL3 wiki -> header
...
[ci skip]
2024-10-13 00:14:05 +00:00
Maia
01c9c1d0eb
Document main callbacks API thread safety
2024-10-12 20:13:30 -04:00
Cameron Cawley
fd9e57b71e
3DS: Support simple message boxes
2024-10-12 16:07:52 -07:00
Cameron Cawley
2bef8852fb
testdrawchessboard: Allow using the standard render API
2024-10-12 16:07:16 -07:00
Rusty Moyher
7556c44796
SDL3: Fixed Cocoa_GL_CreateContext() not returning a context on success ( #11181 )
2024-10-12 14:01:21 -07:00
Cameron Cawley
94c8c170eb
3DS: Only bundle resources with tests that need them
2024-10-12 13:59:00 -07:00
Cameron Cawley
fec006a4f9
Allow for more fine tuning of Duff's device routines
2024-10-12 11:16:46 -07:00
Cameron Cawley
aebb64efa1
Remove leftover ARM SIMD code
2024-10-12 11:13:37 -07:00
Daniel Gibson
9a81892447
Old env vars as fallback for SDL_VIDEO_DRIVER + SDL_AUDIO_DRIVER #11115
...
especially SDL_VIDEODRIVER is commonly used to use the native Wayland
backend, so I think it's a good idea to keep supporting the old name
instead of forcing users to find out that they now have to add an
underscore..
Not sure how popular SDL_AUDIODRIVER is, but with all the audio backends
that exist on Linux alone I'm sure some people use it to work around
sound issues.
Note: Doing this in the SDL_hints implementation instead of the
call-sites of SDL_GetHint(SDL_HINT_VIDEO_DRIVER) etc ensures that
1. Hint priorities work (env var overriding hint set by application with normal
priority, but not when application used SDL_HINT_OVERRIDE)
2. SDL_ResetHint() (called by user code) respects the fallback
environment variable
2024-10-12 08:47:02 -07:00
Cameron Cawley
3e57d996fe
Reduce the size of the SDL_blit_0 alpha code
2024-10-12 08:29:11 -07:00
Semphris
05c53b5ab0
Add macro guards for OpenGL <=1.3 function prototypes
...
- `#define SDL_OPENGL_1_NO_PROTOTYPES` to hide function prototypes
- `#define SDL_OPENGL_1_FUNCTION_TYPEDEFS` to add PFNGL*PROC function types
2024-10-12 11:21:07 -04:00
SDL Wiki Bot
365dba6de8
Sync SDL3 wiki -> header
...
[ci skip]
2024-10-12 15:08:54 +00:00
Zack Middleton
4898cbb6cf
SDL_migration.cocci: Fix renaming SDL_bool
2024-10-12 00:47:04 -07:00
rhett-lee
22566506d0
SDL3: opengles2 render not support window with transparent flag on Linux/X11 ( #11167 )
2024-10-11 21:59:56 -07:00
Sam Lantinga
c6c195ff88
Always use WaitForSingleObjectEx() as a fallback in SDL_SYS_DelayNS()
...
That logic isn't specific to the Visual Studio build environment. Also switched it to use CreateEvent(), which works back to Windows XP.
2024-10-11 21:18:31 -07:00
Sam Lantinga
c5904d8710
Improved implementation of SDL_DelayPrecise() (thanks @nightmareci!)
...
Fixes https://github.com/libsdl-org/SDL/issues/10592
2024-10-11 21:18:31 -07:00
Sam Lantinga
25251a9405
Fixed warning C4723: potential divide by 0
2024-10-11 19:31:22 -07:00