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
Anonymous Maarten
9d06145d6c
ci: fix type + names of intel compiler artifacts
2025-02-21 21:11:54 +01:00
Timothee "TTimo" Besset
fa380a4004
Update include/SDL3/SDL_assert.h
...
Co-authored-by: Sam Lantinga <slouken@libsdl.org >
2025-02-21 11:07:54 -08:00
Timothee "TTimo" Besset
2a1b617fb2
Update include/SDL3/SDL_assert.h
...
Co-authored-by: Sam Lantinga <slouken@libsdl.org >
2025-02-21 11:07:54 -08:00
Timothee 'TTimo' Besset
69e03094bd
fallback to defining SDL_TriggerBreakpoint as __builtin_trap in older linux arm64 environments that do not have a __has_builtin facility
2025-02-21 11:07:54 -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
7855842306
ci: disable precompiled headers for classic intel compiler
2025-02-21 04:49:33 +01:00
Anonymous Maarten
71d1de5d96
ci: add cppflags to CMAKE_(C|CXX)_FLAGS
2025-02-21 04:46:26 +01:00
Anonymous Maarten
28f0867948
SPA_FALLTHROUGH expands to nothing when using the Intel compiler
2025-02-21 04:30:19 +01:00
Anonymous Maarten
8d3db06ff2
ci: GitHub is retiring Ubuntu 20.04 support
2025-02-21 04:30:19 +01:00
Anonymous Maarten
c153f83df0
ci: enable ccache
2025-02-21 04:30:19 +01:00
SDL Wiki Bot
52ee0c1058
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-20 20:17:22 +00: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
f24f9d3bed
Revert "testcamera: added support for Motion JPEG camera frames"
...
This reverts commit 5ccee77190
.
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
06602f4e80
Document that the pitch is the length of the image data for SDL_PIXELFORMAT_MJPG
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
Anonymous Maarten
baf69edfc7
Revert "cmake: build SDL_uclibc with -fPIC"
...
This reverts commit 9784414ddd
.
Some platforms (e.g. ps2) do not support pic.
2025-02-20 20:37:53 +01:00
Anonymous Maarten
fdf8e5a704
ci: build static loongarch libraries with -fPIC
2025-02-20 20:28:57 +01:00
Anonymous Maarten
9784414ddd
cmake: build SDL_uclibc with -fPIC
2025-02-20 20:28:54 +01: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
Cameron Gutman
70d23b2349
README-migration: Remove errant reference to SDL_FALSE_
2025-02-17 15:16:35 -06: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
Petar Popovic
045a4492f1
test/testaudio.c: Fix use-after-free warning
2025-02-16 19:35:54 -08:00