Anonymous Maarten
49adb23ad9
Build yuv_rgb_lsx.c with -mlsx
2024-01-18 10:59:13 -08:00
Anonymous Maarten
dbdc65fc95
video: move standard c, sse and lsx implementations of yuv2rgb to its own source
2024-01-18 10:59:13 -08:00
Sam Lantinga
a31dc6dfcb
Switched SDL_TouchID and SDL_FingerID to be Uint64 with 0 being an invalid value
2024-01-18 10:55:24 -08:00
Edoardo Lolletti
b19d43a74d
Add SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING to migration readme
2024-01-18 10:19:18 -08:00
Edoardo Lolletti
b384973936
Remove no longer needed hint
2024-01-18 10:19:18 -08:00
Edoardo Lolletti
42d6cf9ce7
Update thread naming on windows
2024-01-18 10:19:18 -08:00
Sam Lantinga
cda2bffeee
Re-add SDL_HAPTIC_SQUARE for SDL 3.0
...
Fixes https://github.com/libsdl-org/SDL/issues/8753
Closes https://github.com/libsdl-org/SDL/pull/8831
Closes https://github.com/libsdl-org/SDL/pull/8783
2024-01-18 09:24:03 -08:00
Sam Lantinga
df4b855af5
Updated SDL_TLSID to use the same type as other IDs in SDL
2024-01-18 08:18:37 -08:00
Sam Lantinga
fc0c774976
Renamed SDL_ThreadID() to SDL_GetCurrentThreadID()
...
Also renamed SDL_threadID to SDL_ThreadID and made it Uint64 for consistency with other ID types
2024-01-18 08:18:37 -08:00
Sam Lantinga
d6a41f8f31
Updated SDL_TimerID to use the same type as other IDs in SDL
2024-01-18 07:08:15 -08:00
SDL Wiki Bot
bc3a71d400
Sync SDL3 wiki -> header
2024-01-18 15:01:21 +00:00
Sam Lantinga
464f4d19fe
Removed obsolete XInput mapping hint
2024-01-18 07:00:21 -08:00
Sam Lantinga
f8dfee01bb
Made SDL_ReadSurfacePixel a public function
...
Fixes https://github.com/libsdl-org/SDL/issues/8320
2024-01-18 07:00:10 -08:00
Ozkan Sezer
f7ba340999
remove several instances of unnecessary emptry str "" after SDL_PRI???
2024-01-18 17:25:50 +03:00
Sam Lantinga
c540c77756
Removed SDL_INIT_EVERYTHING
...
Fixes https://github.com/libsdl-org/SDL/issues/8709
2024-01-18 06:17:58 -08:00
Sam Lantinga
26996e2c02
We've decided to keep separate functions for creating a thread with and without stack size specified.
...
Fixes https://github.com/libsdl-org/SDL/issues/6652
2024-01-18 06:11:55 -08:00
Sam Lantinga
a2665f54c8
Updated the atomic API for SDL 3.0 naming conventions
...
Fixes https://github.com/libsdl-org/SDL/issues/7388
2024-01-18 04:41:34 -08:00
SDL Wiki Bot
4e60fc9b2b
Sync SDL3 wiki -> header
2024-01-18 12:07:19 +00:00
Sam Lantinga
fb898d6df0
Clarify that desktop mode is the non-exclusive borderless fullscreen mode
...
Fixes https://github.com/libsdl-org/SDL/issues/8413
2024-01-18 04:06:32 -08:00
SDL Wiki Bot
b5bcf45a65
Sync SDL3 wiki -> header
2024-01-18 12:02:08 +00:00
Sam Lantinga
4fee6cb274
Added documentation for custom event cleanup in SDL_FlushEvent()
2024-01-18 04:00:48 -08:00
Sam Lantinga
fd34bc56f9
cocoa: Fix SDL_CocoaWindowData keyboard_focus being left pointing to a destroyed SDL window if input focus not previously reset for that window
...
- If a window being destroyed is a child of an inactive window and was the last keyboard focus of the window, that window will be left with a stale pointer
to the destroyed window that it will attempt to restore the next time that window is focused. SDL_DestroyWindow will have already taken care of moving
focus if this window is the current SDL keyboard focus so this change intentionally does not set focus.
- Like Cocoa_HideWindow, this attempts to move the focus to the closest parent window that is not hidden or destroying.
2024-01-18 03:36:54 -08:00
Sam Lantinga
0a99ad7a68
cocoa: Fix Cocoa_RaiseWindow not making child window key if SDL_HINT_WINDOW_ACTIVATE_WHEN_RAISED is true
...
- We intentionally don't raise the application when raising a child window to allow raising a child window to the top without setting the application active but the
child window should still be set as key window for the application if desired.
2024-01-18 03:36:52 -08:00
SDL Wiki Bot
20e8411b12
Sync SDL3 wiki -> header
2024-01-18 11:27:24 +00:00
Sam Lantinga
f4a0bc02d5
Re-added prototypes for stub API functions
2024-01-18 03:26:11 -08:00
Sam Lantinga
f224af5ac5
Updated Haptic API for SDL 3.0 conventions
...
Also removed the XInput haptic support since using the haptic API for rumble is no longer supported.
2024-01-18 03:26:11 -08:00
Sam Lantinga
8ca9134115
Removed unnecessary NULL assignment
2024-01-18 03:26:11 -08:00
Sam Lantinga
75dd7e1658
Note that we only allow disabling major subsystems
2024-01-17 09:24:04 -08:00
Sam Lantinga
130b361904
Removed SDL_MISC_DISABLED
2024-01-17 09:24:04 -08:00
Sam Lantinga
20fa5e6ad0
Removed SDL_LOCALE_DISABLED
2024-01-17 09:24:04 -08:00
Sam Lantinga
6efadfdb77
Removed SDL_FILESYSTEM_DISABLED
2024-01-17 09:24:04 -08:00
Sam Lantinga
3d951134a3
Removed SDL_FILE_DISABLED
...
This didn't actually do anything except break functionality on Apple platforms
2024-01-17 09:24:04 -08:00
Sam Lantinga
ac367be171
Updated CMakeLists.txt now that timers and threads can't be disabled
2024-01-17 09:24:04 -08:00
Sam Lantinga
e2080f74fd
Fixed building with the joystick subsystem disabled
2024-01-17 09:24:04 -08:00
Sam Lantinga
a0967c017f
Fixed building with the video subsystem disabled
2024-01-17 09:24:04 -08:00
Sam Lantinga
31f34e9504
Removed SDL_ATOMIC_DISABLED
...
It turns out that because we redefine SDL functions internally, it is safe to call SDL mutex functions while initializing the jump table
2024-01-17 09:24:04 -08:00
Sam Lantinga
6e1b11368d
Removed SDL_CPUINFO_DISABLED
...
CPU info is a core part of the SDL API, and shouldn't be disabled
2024-01-17 09:24:04 -08:00
Sam Lantinga
52d6587084
Removed SDL_EVENTS_DISABLED
...
Events are a core part of the SDL API, and shouldn't be disabled
2024-01-17 09:24:04 -08:00
Sam Lantinga
ba02722755
Removed SDL_LOADSO_DISABLED
...
Loading shared libraries is core functionality on platforms that support it.
2024-01-17 09:24:04 -08:00
Sam Lantinga
0d7df16812
Timers are a required platform feature
...
Many SDL subsystems depend on being able to see time passing. If you are porting to a new platform, you'll need to fill in a timer implementation as part of the initial port.
Fixes https://github.com/libsdl-org/SDL/issues/8850
2024-01-16 20:50:08 -08:00
Sam Lantinga
518b070aa9
Fixed drop event coordinate conversion
2024-01-16 14:07:42 -08:00
SDL Wiki Bot
3ca8cee874
Sync SDL3 wiki -> header
2024-01-16 20:27:25 +00:00
Ryan C. Gordon
8bf74280e0
docs: Note SDL_UpdateWindowSurfaceRects can update beyond specified areas.
...
Reference Issue #8825 .
2024-01-16 15:26:13 -05:00
Sam Lantinga
9408299bad
Set the number of audio devices to 0 if audio hasn't been initialized
...
This updates GetAudioDevices() to have the same behavior as SDL_GetJoysticks() where the return value will only be NULL if there is an error. Returning no devices will return a valid array containing NULL.
2024-01-16 12:15:13 -08:00
Sam Lantinga
be0ba78c56
Convert the coordinates in drop events as well (thanks @Dragon-Baroque!)
2024-01-16 12:00:36 -08:00
Sylvain
e6c8872fdc
Fixed bug #7614 : Segmentation Fault in SDL_BlitSurface
2024-01-16 07:09:35 -08:00
Sylvain
ce0e0675de
Fixed bug #8301 - Software renderer draws long lines incorrectly / SDL_RENDERLINEMETHOD_GEOMETRY
2024-01-16 07:06:29 -08:00
Sam Lantinga
6e48d4532c
Added raw input device handle for WM_INPUT mouse button handling
2024-01-15 19:47:55 -08:00
Sam Lantinga
cf5e0637b5
Touchpads already have their right/left buttons swapped in raw input
...
Fixes https://github.com/libsdl-org/SDL/issues/8597
2024-01-15 19:41:46 -08:00
Sam Lantinga
fb2d7ed83e
Restore window minimum and maximum size if it is recreated
...
Fixes https://github.com/libsdl-org/SDL/issues/8805
2024-01-15 16:33:49 -08:00