Christian Walter
e29ebb9f18
Update geometry renderer example
...
This PR updates the geometry renderer example such that the `color` values of `vertices[3]` are set correctly in `SDL_AppIterate`.
2025-02-09 10:53:14 -08:00
ImThour
ca9a044b3e
Memory Leak in WIN_CreateHCursor When CreateColorBitmap Fails
2025-02-09 10:49:56 -08:00
Clint Kilmer
69d28027ad
Fix for 500ms hang after user clicks on the title bar, but before moving ( #12217 )
...
Reference: https://gamedev.net/forums/topic/672094-keeping-things-moving-during-win32-moveresize-events/5254386/
2025-02-08 11:21:10 -08:00
Guldoman
a0b6c0fd8f
x11: Don't wait for events when the connection errored out ( #8392 )
...
Calling `X11_XIfEvent` after the X11 connection errored out can result in hangs.
2025-02-08 10:07:11 -08:00
Mike Kosek
864bb65ce9
Removed crc
2025-02-08 07:56:40 -08:00
Mike Kosek
006605c3bf
Corrected alphabetical order
2025-02-08 07:56:40 -08:00
Mike Kosek
dc035c5ca6
Added mapping for Dreamcast Controller USB
2025-02-08 07:56:40 -08:00
Michael Savage
5d1bbd9b27
Fix SSE 4.2 test
...
When building with zig cc I get:
```
error: always_inline function '_mm_crc32_u32' requires target feature 'crc32', but would be inlined into function 'calc_crc32c' that is compiled without support for 'crc32'
5 | crc32c = (unsigned)_mm_crc32_u32(crc32c, *(unsigned*)text);
| ^
1 error generated.
```
This PR adds -mcrc32, another option would be to use a different SSE4.2 op
2025-02-08 07:37:14 -08:00
ds-sloth
7c12c63f63
Add generic SDL_syscond to N3DS threads source list
2025-02-06 18:02:03 -08:00
ds-sloth
2ced6b09fc
Delete src/thread/n3ds/SDL_syscond.c
...
This PR removes the incorrect implementation of `SDL_cond` currently included with the 3DS port.
Pseudocode of the incorrect implementation of `SDL_CondWait` this PR removes:
* Receive an `SDL_cond` backed by a `libctru` `CondVar` and an `SDL_mutex` backed by a `libctru` `RecursiveLock`.
* Want to call `libctru` function `CondVar_Wait` which expects a `CondVar` and a `LightLock` (non-recursive lock)
* Do so by calling this function with the internal (inadequately protected) `LightLock` member of the `RecursiveLock` (`&mutex->lock.lock` on line 105), without updating any internal thread or lock count fields of the `RecursiveLock`.
Happy to discuss or test some examples. My own use case works much better with the generic cond logic, and this seems like a safe fix to me given that the generic logic is well-tested and this seems not to be.
If you like the PR I'll send another one for the SDL2 branch.
2025-02-06 18:02:03 -08:00
SDL Wiki Bot
7af17f874c
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-07 02:00:45 +00:00
Sam Lantinga
982094c85c
Updated to version 3.2.5 for development
2025-02-06 16:40:59 -08:00
Sam Lantinga
b5c3eab6b4
Updated to version 3.2.4 for release
release-3.2.4
2025-02-06 16:03:43 -08:00
Sam Lantinga
48c00bfe6c
Fixed creating a window with both software and hardware renderer attached
2025-02-06 15:35:38 -08:00
SDL Wiki Bot
3c6e6645fa
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-06 22:54:21 +00:00
Sam Lantinga
ad8429f1b0
Let the renderer always see window events
...
These are necessary for proper operation of the renderer and shouldn't be blocked by event filters, etc.
2025-02-06 14:38:20 -08:00
Sam Lantinga
c59ac249d2
Revert "wayland: Don't send size events while the window is hidden"
...
This reverts commit 0825d07a43
.
It turns out that resizing while hidden is fine, the real problem in https://github.com/libsdl-org/sdl2-compat/issues/268 is that SDL2 did not send an initial resize event and SDL3 does, which we're fixing in a better way in sdl2-compat.
2025-02-06 14:37:53 -08:00
SDL Wiki Bot
6cb3d37a2b
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-06 20:11:12 +00:00
Petar Popovic
80653a42c7
Remove non-ASCII character from public header SDL_hints.h
2025-02-06 12:10:16 -08:00
Sam Lantinga
a646dc89e5
Note that SDL_GUIDToString() and SDL_StringToGUID() are thread-safe.
2025-02-06 10:44:21 -08:00
Ryan C. Gordon
8730f6a569
dynapi: Don't use SDL_getenv; it might malloc before the app sets an allocator.
...
Use platform-specific code instead, so SDL's allocator never comes into play.
(cherry picked from commit d2693d4c7d
)
2025-02-06 12:46:15 -05:00
Quan Zhuo
c9341489cc
Fix #12197 : Force set /utf-8 for msvc compilers ( #12198 )
...
The MSVC compiler determines the encoding of the source code based on
the BOM of the source code when reading it. If there is no BOM, it
defaults to the local encoding, which is gb2312, codepage 936, on
Simplified Chinese Windows. This can cause errors such as newline
characters in strings.
2025-02-06 09:34:41 -08:00
Sam Lantinga
8397e1fcc0
Fix up SDL2 style mappings for HIDAPI controllers
...
Fixes https://github.com/libsdl-org/sdl2-compat/issues/316
2025-02-06 09:21:52 -08:00
Sam Lantinga
7691cabe4a
Removed incorrect HIDAPI gamepad mapping
2025-02-06 08:37:10 -08:00
Evan Hemsley
86691d325b
GPU: Remove stencil bit from sampler aspect mask on Vulkan ( #12196 )
2025-02-05 17:52:35 -08:00
Sam Lantinga
6782cfe2c5
Don't use the HIDAPI driver for Thrustmaster wheels
...
Closes https://github.com/libsdl-org/SDL/pull/12173
2025-02-05 17:19:59 -08:00
Sam Lantinga
1c0e2b7f97
SDL_OpenHapticFromJoystick() returns a valid haptic object
2025-02-05 17:08:41 -08:00
Sam Lantinga
c4550d906a
testcontroller: show the gamepad device type
2025-02-05 08:27:26 -08:00
SDL Wiki Bot
5ad0337685
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-05 15:45:41 +00:00
Petar Popovic
68dabd48c4
SDL_GetTrayEntries(): Rename parameter size
to count
2025-02-05 07:44:46 -08:00
Sam Lantinga
b99e19c0a2
Fixed potential double-free
2025-02-05 00:04:45 -08:00
Sam Lantinga
8ba8cca69b
Fixed memory leak looking up pen tool names
2025-02-04 23:59:08 -08:00
Sam Lantinga
2cd2834dfe
Fixed memory leak in the pen cleanup
...
Fixes https://github.com/libsdl-org/SDL/issues/12099
2025-02-04 23:49:12 -08:00
Cameron Gutman
c4c185283f
dbus: fix spurious leak reports with SDL_SHUTDOWN_DBUS_ON_QUIT=0
2025-02-04 17:01:06 -08:00
Cameron Cawley
691a6133d3
Remove #undef __3DS__
2025-02-04 13:57:41 -08:00
Jean-Philip Desjardins
33c0654d54
Allow OpenGL initialization on XB1 and XSX.
2025-02-04 07:35:52 -08:00
WinterSquire
eb5ab22032
Check nullptr before calling the windows message hook for WM_ENTERSIZEMOVE and WM_ENTERMENULOOP
2025-02-03 21:33:58 -08:00
Ryan C. Gordon
e7f326a84e
bmp: Removed debug printf call.
2025-02-03 23:35:08 -05:00
Ryan C. Gordon
61b1c25eeb
x11: SDL_SetWindowPosition on an unmapped window will do the actual move later.
...
Fixes https://github.com/libsdl-org/sdl2-compat/issues/303
2025-02-03 22:52:13 -05:00
Petar Popovic
f1b3523c67
Remove redundant parenthesis in SDL_MUSTLOCK macro
2025-02-03 19:47:16 -08:00
Petar Popovic
8527d042bc
Remove const from parameter of inline function SDL_RectsEqualEpsilon()
2025-02-03 19:46:36 -08:00
Sam Lantinga
07c22da464
Fixed decoding 4-bit RLE encoded BMP files
...
Also flipped the return value of readRlePixels() to match convention.
Fixes https://github.com/libsdl-org/sdl2-compat/issues/308
2025-02-03 19:34:38 -08:00
Petar Popovic
8ccf85c59e
Formatting spaces around pointer symbol.
2025-02-03 17:03:26 -08:00
Sam Lantinga
94409d3504
Added Switch Input-only controller entries for Zuiki MasCon controller for Nintendo Switch.
...
The device string indicates RED on the one I have and is PIDs 0003 and some other posts online say 0001 for the normal model, so I'll try 0001-0003 to get all 3 color variants
2025-02-03 16:49:29 -08:00
Sam Lantinga
a8a2874ef4
Added distinct VID/PIDs for the PS4 vs Xbox eSwap Pro controllers
2025-02-03 13:26:04 -08:00
Sam Lantinga
84bc2abdad
Corrected the entry for the PXN V900 racing wheel
2025-02-03 13:11:02 -08:00
Sam Lantinga
eac07bda0a
Sort the controller lists by VID/PID
2025-02-03 12:39:53 -08:00
Sam Lantinga
6243a06539
Call the windows message hook for WM_ENTERSIZEMOVE and WM_ENTERMENULOOP
...
Fixes https://github.com/libsdl-org/SDL/issues/12169
2025-02-03 09:17:17 -08:00
SDL Wiki Bot
ec959a4349
Sync SDL3 wiki -> header
...
[ci skip]
2025-02-03 16:52:24 +00:00
Sam Lantinga
8e51b2468a
Renamed SDL_SoftStretch() to SDL_StretchSurface()
...
Fixes https://github.com/libsdl-org/SDL/issues/12168
2025-02-03 08:51:32 -08:00