Petar Popovic
ad11c6988c
src/io/SDL_asyncio.c:SDL_AsyncIOFromFile(): Fix null-dereference warning
2025-02-23 11:12:24 -08:00
Frank Praznik
52af81ea17
wayland: Fix mapping borderless windows under libdecor
...
Additionally, add a warning about calling the frame visibility function universally during the mapping process, as the libdecor Cairo plugin has a bug that will cause a crash in this scenario.
2025-02-23 11:04:29 -05:00
Frank Praznik
1a0a94b501
x11: Accommodate the borders when setting the initial window position
2025-02-23 10:49:40 -05:00
Sam Lantinga
52e64f816c
Use SDL C runtime functions in OpenVR driver
...
Fixes link errors when building with -DSDL_LIBC=OFF
2025-02-22 12:41:03 -08:00
Sam Lantinga
7224b40407
Fix errors when building stb_image with -DSDL_LIBC=OFF
...
I integrated changes from SDL_image and updated as needed for JPEG memory loading functionality.
Fixes https://github.com/libsdl-org/SDL/issues/12364
2025-02-22 12:41:03 -08:00
Cameron Gutman
945da099ae
pipewire: Fix possible deadlock when opening a device
...
If the pipewire thread invokes output_callback() while we're still
waiting inside PIPEWIRE_OpenDevice(), we will deadlock. The pipewire
thread owns the loop lock and is blocked on the audio device lock,
which cannot be released because pw_thread_loop_wait() needs to
reacquire the loop lock before it can return and allow
PIPEWIRE_OpenDevice() to complete and release the device lock.
2025-02-22 11:37:06 -08:00
Sam Lantinga
e50db698e2
Disable all camera drivers if SDL_CAMERA_DISABLED is defined
...
Fixes https://github.com/libsdl-org/SDL/issues/12182
2025-02-22 09:48:49 -08:00
Sam Lantinga
1ddba3ad55
Replace "8BitDo Tech Ltd" with "8BitDo" in the manufacturer string
...
Fixes the 8BitDo Micro gamepad so it shows up as "8BitDo Bluetooth Wireless Controller" in keyboard mode over Bluetooth.
2025-02-22 09:19:59 -08:00
Sam Lantinga
fdf72d1e45
Use the keyboard/mouse vendor if available
...
Fixes the 8BitDo Micro gamepad so it shows up as "8BitDo HID-compliant mouse" and "8BitDo HID Keyboard Device" in keyboard mode over USB.
2025-02-22 09:19:59 -08:00
Sam Lantinga
a811e0ef0f
Added support for the 8BitDo Micro gamepad
2025-02-22 09:19:59 -08:00
Sam Lantinga
75bbcbf87b
Added support for Motion JPEG pipewire camera capture
2025-02-22 00:23:03 -08:00
Anonymous Maarten
03e00cd347
v4l2: map SDL_PIXELFORMAT_MJPG to V4L2_PIX_FMT_MJPEG
2025-02-21 23:04:13 -08:00
Sam Lantinga
fcd41c1d2c
Check desired window area when checking zoom state
...
isZoomed returns true if the window has the size and position that it would if it were maximized, so we need to check to see if our floating state matches that before saying we're zoomed.
This fixes calling zoom:nil on a borderless resizable window that was created with the same size as the usable desktop area, which happens to also be the maximized state.
Fixes https://github.com/libsdl-org/SDL/issues/12228
2025-02-21 18:38:12 -08:00
Petar Popovic
b5297de56f
Add 'const' to pointer parameters
2025-02-21 15:59:40 -08:00
Sam Lantinga
911e53dece
Retain mouse focus as long as we're getting mouse events
...
Fixes https://github.com/libsdl-org/SDL/issues/12218
Fixes https://github.com/libsdl-org/SDL/issues/12323
2025-02-21 15:35:28 -08:00
Sam Lantinga
3b8cb62283
Make it easier to enable IME debug logs
2025-02-21 15:24:45 -08:00
williamhCode
9a607e886e
make start&length represent utf32 indices
2025-02-21 12:54:56 -08:00
Petar Popovic
c70f54e28b
Remove redundant casts
2025-02-21 10:09:10 -08:00
Sam Lantinga
2e346d7166
Added 32-bit texture formats to Texture_GetBlockWidth() and Texture_GetBlockHeight()
...
Fixes https://github.com/libsdl-org/SDL/issues/12335
2025-02-21 09:29:18 -08:00
Sam Lantinga
5d776c070a
Refactored SDL_CreateJoystickName() into a general SDL_CreateDeviceName()
2025-02-21 09:10:54 -08:00
expikr
3293eb1a16
use hidapi to get mouse/keyboard string
2025-02-21 07:42:20 -08:00
Anonymous Maarten
28f0867948
SPA_FALLTHROUGH expands to nothing when using the Intel compiler
2025-02-21 04:30:19 +01:00
Sam Lantinga
9267930fea
Added a fast path for converting the same format and pitch
2025-02-20 12:16:26 -08:00
Sam Lantinga
2e89c53ebc
Added support for decoding MJPG into NV12 textures
2025-02-20 12:16:26 -08:00
Sam Lantinga
a792434a37
Added initial MJPG support using stb_image
2025-02-20 12:16:26 -08:00
Frank Praznik
b48de48efb
wayland: Add support for high-DPI icons
2025-02-20 13:57:37 -05:00
Frank Praznik
6e0264d38e
x11: Use the current or last-requested window position when setting the size hint
...
The move operation is just a no-op to try and force the hint to take effect, so it should use the current window coordinates.
2025-02-20 13:25:47 -05:00
Sam Lantinga
1a38960eee
Call SDL_DiscardAllCommands() for the software renderer as well
2025-02-20 09:53:11 -08:00
Sam Lantinga
8f4c5e15f1
Finish any drawing when destroying a software renderer
...
Fixes the SDL3 version of https://github.com/libsdl-org/sdl2-compat/issues/373
2025-02-20 08:49:47 -08:00
Paper
1a853973ab
thread/windows: fix stack overflow in exception naming
2025-02-20 07:57:00 -08:00
Sam Clegg
a40b2de946
Fix SDL_emscriptenaudio.c under wasm64
...
Same as #12332 which already landed on SDL2 branch.
2025-02-19 13:00:47 -08:00
Anonymous Maarten
523e6530a8
SDL_test: fix "'function': different 'const' qualifiers" warning in SDL_test_harness
2025-02-19 19:06:48 +01:00
Frank Praznik
9e4c657ed8
wayland: Fix color manager protocol string check
2025-02-19 11:43:53 -05:00
nightmareci
7500a758b8
Remove usages of restrict keyword in SDL_render.c
...
I ran into the usage of `restrict` breaking builds targeting Windows XP, as the v141 MSVC toolset doesn't support the keyword.
2025-02-18 11:40:43 -08:00
Frank Praznik
a7f01cd73c
x11: Set the pending window position immediately after mapping
...
Waiting until the first configure event to perform the move can result in the window visibly jumping in position.
2025-02-18 11:27:03 -05:00
Mike Kosek
1fd626939f
Renamed DreamPort to DreamPicoPort
2025-02-18 11:06:28 -05:00
ImThour
31f9cb4806
Unchecked Return Value in WIN_SuspendScreenSaver ( #12316 )
2025-02-17 15:36:56 -08:00
ImThour
057c3602e9
Removing Double-free Issue
2025-02-17 15:34:18 -08:00
ImThour
5c79f4cae1
Incorrect bfOffBits Calculation in WIN_ConvertDIBtoBMP
2025-02-17 13:59:03 -08:00
Petar Popovic
6aef6ae9a8
AddPulseAudioDevice(): Fix use-after-free
2025-02-17 11:12:44 -08:00
Frank Praznik
3b4cfc11f0
wayland: Update copyright dates in added color manager source files
2025-02-17 11:36:00 -05:00
Frank Praznik
fadb261b66
wayland: Add color manager protocol support
...
Support the official wp_color_manager_v1 protocol.
2025-02-17 11:31:12 -05:00
Sam Lantinga
6ef687c864
Simplified and fixed media foundation buffer handling
2025-02-17 08:14:30 -08:00
Sam Lantinga
de12cb92dc
Fixed crash at shutdown with new hashtable code
2025-02-17 08:14:30 -08:00
ImThour
a513168902
Fixed Memory/Resource Leaks ( #12304 )
2025-02-17 07:30:30 -08:00
captain0xff
7ea0ffb748
update
2025-02-16 13:44:00 -08:00
captain0xff
06eb10c518
haiku: check if the returned _SDL_GLView is null or not
2025-02-16 13:44:00 -08:00
Sam Lantinga
1754943596
Fixed camera frame acquisition on Windows 7
...
Fixes https://github.com/libsdl-org/SDL/issues/12210
2025-02-16 08:13:35 -08:00
Sam Lantinga
e3d9f1172c
Remove the reference to the thread when it is detached
...
Fixes https://github.com/libsdl-org/SDL/issues/12301
2025-02-16 07:56:30 -08:00
Petar Popovic
c6a3b5b6ef
src/test/SDL_test_harness.c: Free variables before returning
2025-02-15 21:00:04 -08:00