Sam Lantinga
58270ef3f2
Finished renaming functions in SDL_system.h
2024-07-16 09:35:49 -07:00
Ryan C. Gordon
199e6929e5
README-macos: fixed some text.
2024-07-16 08:25:38 -04:00
SDL Wiki Bot
4ac67f5ba6
Sync SDL3 wiki -> header
2024-07-16 01:38:55 +00:00
Sam Lantinga
033df70d4c
SDL_DelayNS() will attempt to sleep exactly the requested amount of time
...
This provides a highly accurate sleep function for your application, although you are still subject to being switched out occasionally.
Fixes https://github.com/libsdl-org/SDL/issues/10210
2024-07-15 18:38:09 -07:00
Sam Lantinga
54366181c3
Rename functions in SDL_system.h to match SDL 3.0 naming convention
...
Fixes https://github.com/libsdl-org/SDL/issues/10277
2024-07-15 16:27:48 -07:00
Bruce Mitchener
e38f971f46
Fix typos in cmake
2024-07-15 15:24:00 -07:00
Sam Lantinga
70c8fe61d7
Align SDL_BLENDMODE_INVALID with the other constants
2024-07-15 15:00:09 -07:00
Sam Lantinga
bf501ab2d4
Made the SDL_BlendMode values wiki-friendly
2024-07-15 14:46:56 -07:00
Sam Lantinga
492e3c1a54
direct3d11: we don't need to create all the blend states up front
2024-07-15 14:12:33 -07:00
Sam Lantinga
a419e2c890
Updated and re-enabled surface and render blend mode tests
2024-07-15 14:12:33 -07:00
Sam Lantinga
df573391b1
Added SDL_BLENDMODE_BLEND_PREMULTIPLIED and SDL_BLENDMODE_ADD_PREMULTIPLIED
...
Fixes https://github.com/libsdl-org/SDL/issues/2485
2024-07-15 14:12:33 -07:00
Carl Åstholm
f099898a66
Correct ibus include path
...
ibus-1.0.pc adds /usr/include/ibus-1.0 to the search path but not
/usr/include, which makes the canonical include path <ibus.h>.
2024-07-15 11:24:47 -07:00
SDL Wiki Bot
9406a9d527
Sync SDL3 wiki -> header
2024-07-14 23:42:33 +00:00
Sam Lantinga
5c875e1183
Renamed *FromID() to *ForID()
...
While it makes sense to get an object pointer from an object ID, you want to get object attributes for an ID, otherwise e.g. GetNameFromID() sounds like it's a name ID, not an object ID. This is also consistent with the function naming convention in SDL2.
2024-07-14 15:56:50 -07:00
SDL Wiki Bot
0cdc60666b
Sync SDL3 wiki -> header
2024-07-14 21:04:37 +00:00
Ryan C. Gordon
f61900465c
stdinc: Fixed up documentation details for standard types.
2024-07-14 17:03:15 -04:00
SDL Wiki Bot
cb854d1bc9
Sync SDL3 wiki -> header
2024-07-14 20:02:23 +00:00
Sam Lantinga
5836b880b4
Sorted symbols
2024-07-14 13:01:53 -07:00
Sam Lantinga
9797c5d0c0
Renamed CameraDevice to Camera
...
This is consistent with the rest of the SDL API
2024-07-14 13:01:53 -07:00
Sam Lantinga
9358333286
Renamed SDL_GetKeyboardInstanceName() and SDL_GetMouseInstanceName()
...
For consistency with other device APIs
2024-07-14 13:01:53 -07:00
Sam Lantinga
d154b37b41
Renamed *FromInstanceID() to *FromID()
2024-07-14 13:01:53 -07:00
Sam Lantinga
cad9e6ea20
Fixed SDL_SINT64_C typo
...
Apparently all the platforms we compile on have INT64_C defined?
Fixes https://github.com/libsdl-org/SDL/issues/10268
2024-07-14 12:53:32 -07:00
Ryan C. Gordon
90e69f81e5
SDL_hidapi.h: Fixed something that apparently upset wikiheaders.
2024-07-14 15:20:26 -04:00
Ryan C. Gordon
15f850babc
SDL_hidapi.h: remove struct predeclaration before typedef.
2024-07-14 15:18:08 -04:00
Anonymous Maarten
b9dcc5de60
ci: bump cross-platform-actions/action, used by the BSDs
2024-07-14 21:09:18 +02:00
Sam Lantinga
a17b742e34
Added documentation references to the components of a colorspace
2024-07-14 11:43:39 -07:00
SDL Wiki Bot
abaef81615
Sync SDL3 wiki -> header
2024-07-14 18:04:00 +00:00
Sam Lantinga
6217094c40
Updated colorspace documentation for the wiki
2024-07-14 11:02:56 -07:00
Sam Lantinga
1fecef5e4b
Assign numeric values to pixel format enums
...
This makes it easier to generate language bindings for these.
2024-07-14 11:02:56 -07:00
Sam Lantinga
cb395f7e80
Change SDL_AudioFormat into an enum
...
This makes it easier to understand in the debugger, and is consistent with SDL_PixelFormat and SDL_Colorspace
2024-07-14 10:04:31 -07:00
Sam Lantinga
e290e99d89
Fixed error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int'
2024-07-14 09:04:09 -07:00
Sam Lantinga
e90060d07f
Renamed functions to get information from device IDs
...
Fixes https://github.com/libsdl-org/SDL/issues/10237
2024-07-14 09:03:59 -07:00
Anonymous Maarten
933f2fc239
pthread: timespec.tv_nsec must be less then 1000000000 ns
2024-07-14 17:28:54 +02:00
Sam Lantinga
bfee544685
Changed SDL_GetWindowPixelFormat() to return SDL_PixelFormat
...
Fixes https://github.com/libsdl-org/SDL/issues/10257
Closes https://github.com/libsdl-org/SDL/pull/10258
2024-07-14 07:19:20 -07:00
Sam Lantinga
dd08c279e2
Fixed coccinelle patching
...
Fixes https://github.com/libsdl-org/SDL/issues/10260
2024-07-14 07:15:48 -07:00
Sam Lantinga
509f3a42d7
Fixed crash when pumping events after the window has been destroyed on Android
2024-07-13 17:57:46 -07:00
Anonymous Maarten
c80665a696
Avoid code duplication in SDL_GetPixelFormatDetails
2024-07-14 01:20:02 +02:00
pixls
4e3f35ccbf
Unlocking mutex in success case too
...
Without unlocking, we trigger an assertion failure in SDL_sysmutex.c at line 80 (i.e. 'rc == 0'). Each lock-unlock pair should ideally cancel each other out, maintaining a reference count that returns to zero.
2024-07-13 16:12:46 -07:00
SDL Wiki Bot
2596482c3f
Sync SDL3 wiki -> header
2024-07-13 21:32:39 +00:00
Sam Lantinga
650271af46
Added SDL_CreateSurfacePalette()
2024-07-13 14:31:28 -07:00
Sam Lantinga
9379e2eb8d
Don't force vsync on for the software renderer
...
Setting vsync 0 should succeed for the software renderer.
2024-07-13 10:04:15 -07:00
Sam Lantinga
1e6119e335
VULKAN_RenderPresent() should return result code 0 on success
2024-07-13 09:27:06 -07:00
Ryan C. Gordon
3d86dce673
haiku: No more chdir to executable's directory at startup in SDL3.
...
Use SDL_GetBaseDir() to find this directory instead.
Reference Issue #8403 .
Fixes #7596 .
2024-07-13 12:24:27 -04:00
Sam Lantinga
c6b9b08e9f
Fixed Android build warnings
2024-07-13 09:00:41 -07:00
Sam Lantinga
44f06b216a
Fixed refresh interval calculation
2024-07-13 08:52:43 -07:00
captain0xff
2dcb9440f1
android: fix the vulkan renderer
2024-07-13 08:16:26 -07:00
captain0xff
0506cf18ab
android: enable vulkan renderer
2024-07-13 08:16:26 -07:00
Anonymous Maarten
f13be04980
testaudio: use SDL_APP_FAILURE macro to signal failure
2024-07-13 17:06:54 +02:00
ceski
68cf17d0d4
Add a Windows mapping for SplitFish Game Controller
2024-07-12 19:48:40 -07:00
Sam Lantinga
00ab330207
Use DXGI to get precise display mode refresh rate values
...
Fixes https://github.com/libsdl-org/SDL/issues/10185
2024-07-12 19:45:01 -07:00