nightmareci
7500a758b8
Remove usages of restrict keyword in SDL_render.c
...
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
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
...
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
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 )
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
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
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
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
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
2025-02-16 19:35:54 -08:00
Petar Popovic
da2460f9e7
test/testautomation_audio.c: Free variables before returning
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
2025-02-16 16:57:56 -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
SDL Wiki Bot
dea99e54fd
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-16 17:44:58 +00:00
Sam Lantinga
1754943596
Fixed camera frame acquisition on Windows 7
...
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
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
831fc70923
test/testautomation_intrinsics.c: Free variables before returning
2025-02-16 07:50:07 -08:00
Petar Popovic
c6a3b5b6ef
src/test/SDL_test_harness.c: Free variables before returning
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
2025-02-15 21:00:04 -08:00
Ryan C. Gordon
84a236c92e
hashtable: Redesign the hashtable API.
...
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
This was intended to make the API public, so SDL_hashtable.h got an extreme
documentation makeover, but for now this remains a private header.
This makes several significant interface changes to SDL_HashTable, and
improves code that makes use of it in various ways.
- The ability to make "stackable" tables is removed. Apparently this still
worked with the current implementation, but I could see a future
implementation struggle mightily to support this. It'll be better for
something external to build on top of the table if it needs it, inserting a
linked list of stacked items as the hash values and managing them separately.
There was only one place in SDL using this, unnecessarily, and that has also
been cleaned up to not need it.
- You no longer specify "buckets" when creating a table, but rather an
estimated number of items the table is meant to hold. The bucket count was
crucial to our classic hashtable implementation, but meant less once we
moved to an Open Addressing implementation anyhow, since the bucket count
isn't static (and they aren't really "buckets" anymore either). Now you
can just report how many items you think the hash will hold and SDL will
allocate a reasonable default for you...or 0 to not guess, and SDL will
start small and grow as necessary, which is often the correct thing to do.
- There's no more SDL_IterateHashTableKey because there's no more "stackable"
hash tables.
- SDL_IterateHashTable() now uses a callback, which matches other parts of SDL,
and also lets us hold the read-lock for the entire iteration and get rid of
the goofy iterator state variable.
- SDL_InsertIntoHashTable() now lets you specify whether to replace existing
keys or fail if the key already exists.
- Callbacks now use SDL conventions (userdata as the first param).
- Other naming convention fixes.
I discovered we use a lot of hash tables in SDL3 internally. :) So the bulk
of this work is fixing up that code to use the new interfaces, and simplifying
things (like checking for an item to remove it if it already exists before
inserting a replacement...just do the insert atomically, it'll do all that
for you!).
2025-02-15 18:52:56 -05:00
Cameron Gutman
4a9b579195
joystick: remove dead udev code
...
SDL_USE_LIBUDEV is never even defined here and SDL_hid_init() already does this.
2025-02-15 14:17:13 -06:00
SDL Wiki Bot
ba45256940
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-15 17:42:27 +00:00
Sam Lantinga
fd4e6d2949
Don't render 0 sized texture rectangles
...
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
Fixes https://github.com/libsdl-org/sdl2-compat/issues/355
2025-02-15 07:07:56 -08:00
Frank Praznik
6f3b14a6df
audio/video: Fix uninitialized field warnings
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
2025-02-14 17:16:10 -05:00
Sam Lantinga
5b98c4a524
Fixed motion events with TOOL_TYPE_UNKNOWN
...
This happens using hand tracking on a VR headset, and should be treated like normal touch interaction.
2025-02-14 11:50:43 -08:00
Chen Steenvoorden
8a648dfd9b
emscripten: Fixed unregistering of key event handlers
2025-02-14 10:15:15 -08:00
Petar Popovic
c16b7bcb7a
SDL_Get*Driver() functions: Set error message on failure
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
2025-02-13 16:10:37 -08:00
ImThour
ed0a03e9b5
Fixed Cursor Icon State for SYSTEM_CURSOR_PROGRESS
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
2025-02-13 11:38:41 -08:00
Petar Popovic
5dce8c748f
SDL_GetRelativeMouseState(): Get relative mouse position also when relative mouse mode is disabled
2025-02-13 11:34:24 -08:00
SDL Wiki Bot
cedf53bbc2
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-13 05:39:38 +00:00
Sam Lantinga
3de975884a
Document the "trace" log priority
2025-02-12 21:37:30 -08:00
Sam Lantinga
b9d018f2a2
Fixed wayland cursor use-after-free at shutdown
2025-02-12 20:47:31 -08:00
SDL Wiki Bot
041894a523
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-13 01:45:34 +00:00
Semphris
3be67ced64
Fix GTK tray icon without menu + lifetime
2025-02-12 16:18:31 -08:00
Ryan C. Gordon
1354affd28
haiku: Fixed keyboard input.
...
_GetWinID() doesn't work with keyboard-related BMessages, because Haiku
assumes you know what window has keyboard focus at the time, so these events
don't have a `window-id` property. So when this call failed, the key event
handler would return early.
This was probably a copy/paste error that snuck in at some point, as SDL2
doesn't have this issue.
2025-02-12 17:17:14 -05:00
Sam Lantinga
d2b7a84651
Fixed SDL_GetNumGamepadTouchpads() returning 1 for a NULL gamepad
2025-02-12 13:08:41 -08:00
Sam Lantinga
ca29304ce1
Fixed continually resetting keyboard and mouse readings
2025-02-12 13:02:15 -08:00
Sam Lantinga
f67c644649
Fixed reporting hat positions for GameInput controllers
2025-02-12 13:02:15 -08:00
Sam Lantinga
1b35ca9c32
Refactored GameInput initialization
2025-02-12 13:02:15 -08:00
Frank Praznik
706de78a9e
audio/video: Skip preferred drivers when loading a driver on demand
...
Preferred driver entries have special conditions for initializing, which aren't relevant when a specific driver was explicitly requested.
2025-02-12 11:51:36 -05:00
Sam Lantinga
715c18739b
Added an internal hint "SDL_VIDEO_X11_XINPUT2" for sdl2-compat
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
2025-02-11 15:11:33 -08:00
Sam Lantinga
ce69e98989
Copy SDL2_SYSWMEVENT data into temporary memory for the event
2025-02-11 15:11:33 -08:00
coffeechriph
55fd205ba4
Add missing integer texture formats to SDL_GPUTextureFormatTexelBlockSize ( #12151 )
2025-02-11 14:21:30 -08:00
Semphris
e6029401d9
Check for non-NULL icon for trays on Unix
2025-02-11 13:47:17 -08:00
captain0xff
b03332b68d
updated bytepusher demo to be C++ compatible
2025-02-11 13:38:29 -08:00
captain0xff
5dd2492645
updated the snake demo to be C++ compatible
2025-02-11 13:38:29 -08:00
Frank Praznik
78f816d74e
x11: Apply the modifier state from key events
...
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions
Use the modifier state supplied with key events to track the system modifier state instead of relying on the state returned by XQueryPointer(), which can be racy when used with automated text entry.
2025-02-11 14:14:12 -05:00