Sam Lantinga
e24eeefbd1
The default render texture format is SDL_PIXELFORMAT_ARGB8888
...
We do this for consistency across backends
2025-11-06 09:46:43 -08:00
Sam Lantinga
ca072c9fc6
Don't do anything if the window mouse rect hasn't changed
2025-11-06 09:18:58 -08:00
Mathieu Eyraud
de5b8a1c45
Remove useless call to SetTextureAddressMode()
2025-11-06 08:25:00 -08:00
Mathieu Eyraud
7ad4911584
Remove incorrect and useless call to SetTextureScaleMode()
...
SetTextureScaleMode() is called a few lines below with correct arguments.
2025-11-06 08:25:00 -08:00
Ozkan Sezer
616c21d730
SDL_camera_v4l2.c: fix build against old kernel headers.
2025-11-06 18:28:50 +03:00
Mathieu Eyraud
80af7d3ccd
Fix error handling of X11Toolkit_InitWindowPixmap
2025-11-06 07:25:29 -08:00
Mathieu Eyraud
d17b8412f1
Fix potential NULL pointer dereference
2025-11-06 07:24:47 -08:00
Yevgen Abramov
04af745fec
Add support for V4L2 XB24 (32-bit RGBX) camera format
2025-11-06 07:13:04 -08:00
Sam Lantinga
c94da8977d
Validate SPI read command in the Nintendo Switch HIDAPI driver
2025-11-05 17:34:22 -08:00
Sam Lantinga
9a1745f2c8
Fixed unaligned access in the Nintendo Switch HIDAPI driver
2025-11-05 17:08:22 -08:00
Ryan C. Gordon
720a9d0636
README-emscripten: Note that using the latest stable release is a good idea.
2025-11-05 16:12:01 -05:00
Ryan C. Gordon
7324823b3e
emscripten: Send resize events when screen orientation changes.
...
The canvas _might_ be changing sizes, if you've set up your own CSS for it, or
are using SDL_HINT_EMSCRIPTEN_FILL_DOCUMENT.
Reference Issue #7359 .
2025-11-05 15:52:38 -05:00
Yevgen Abramov
b09b557fc6
Fix V4L2 frame rate numerator comparison in SDL3 camera
...
Signed-off-by: Yevgen Abramov <eabramov84@gmail.com >
2025-11-05 10:56:03 -08:00
Frank Praznik
f5e72c8709
docs: Add XTEST library to the Fedora package list
...
SDL requires that all the X11 libraries be present for configuration to succeed by default, and the package list was missing this one.
2025-11-04 19:21:34 -05:00
Anonymous Maarten
0da649eb72
release: don't download pre-release dependencies + strict version parsing
2025-11-04 18:00:23 +01:00
Sam Lantinga
49134ecf25
Pass the error through from the SetRelativeMouseMode() implementation
2025-11-03 13:07:17 -08:00
Sam Lantinga
05887f2087
Return false from SDL_SetWindowRelativeMouseMode() if relative mode isn't available
...
Fixes https://github.com/libsdl-org/SDL/issues/14388
2025-11-03 13:01:41 -08:00
Sam Lantinga
eedc0b19fd
Fixed build warning when X11 XInput isn't available
2025-11-03 13:01:41 -08:00
Sam Lantinga
4560fae07e
Fail configuration if X11 dependency packages aren't available
...
It happens fairly often that people enable X11 support but don't install the extension libraries that SDL depends on. This makes those required if not explicitly disabled, which should help prevent accidentally broken builds.
2025-11-03 13:01:41 -08:00
Sam Lantinga
a6351ac474
Added libxtst-dev to Linux CI build dependencies
2025-11-03 13:01:41 -08:00
yuanhecai
dc5b136930
loongarch: add SDL_FillSurfaceRect4LSX opt
2025-11-03 08:45:51 -08:00
yuanhecai
0b1eb4c841
loongarch: add Blit8888to8888PixelAlphaSwizzleLSX opt
2025-11-03 08:45:51 -08:00
aikawayataro
5ad9b6b317
Add bounds checks in SDL_qsort ( #10066 )
2025-11-03 08:40:30 -08:00
Sam Lantinga
ea8e66ccd1
Don't use getpagesize() on Windows
...
Fixes https://github.com/libsdl-org/SDL/issues/14328
2025-11-03 08:36:29 -08:00
Sam Lantinga
6493be9eea
Removed SDL_AUTO_ENABLE_ENHANCED_FLYDIGI
2025-11-03 08:20:41 -08:00
Joshua T. Fisher
641deb9c0e
Initial port to SDL3 audio subsystem
2025-11-03 10:08:50 -05:00
Frank Praznik
05ce978e18
cocoa: Use cached viewport dimensions when querying the window pixel size
...
Recalculate the backing viewport dimensions in the resize handler, otherwise, this data can be out-of-sync with the logical window size if queried during transition animations.
2025-11-03 09:43:08 -05:00
Sam Lantinga
97e2951875
Removed redundant wait at shutdown in the ALSA audio driver
2025-11-02 18:30:12 -08:00
Sam Lantinga
4db63e323e
Save a copy of the D3D12 semantic string
...
Fixes https://github.com/libsdl-org/SDL/issues/14383
2025-11-02 16:16:20 -08:00
Anonymous Maarten
63cb046d38
release: don't use legacy Android CMake toolchain file
...
[ci skip]
2025-11-02 23:24:51 +01:00
Sam Lantinga
0882623092
Clamp the audio drain delay to 100 ms
...
Fixes https://github.com/libsdl-org/SDL/issues/9829
2025-11-02 11:15:25 -08:00
Sam Lantinga
889e4787d6
Clarify when we want to auto-enable Apex 5 enhanced functionality
2025-11-02 11:14:41 -08:00
Sam Lantinga
3336aa95f1
Fixed the paddle mapping for Steam Controllers
...
Fixes https://github.com/libsdl-org/SDL/issues/14380
2025-11-02 10:06:49 -08:00
Sam Lantinga
b695e5c24b
Fixed whitespace
2025-11-02 09:31:55 -08:00
bleeqer
fc6f97f162
Fix NULL pointer dereference in SDL_GlobStorageDirectory
2025-11-02 08:55:52 -08:00
Sam Lantinga
eb87a36940
Fixed the right touchpad calculation for the BLE Steam Controller
...
Fixes https://github.com/libsdl-org/SDL/issues/14368
2025-11-02 08:31:37 -08:00
Sam Lantinga
6c4f2bd83d
Use DefWindowProc for the initial SDL window proc
...
This makes sure that anything that hooks window creation to set up window proc hooks will call DefWindowProc instead of infinitely recursing when we set up our window proc afterwards.
Fixes https://github.com/libsdl-org/SDL/issues/10529
2025-11-02 07:23:29 -08:00
Sam Lantinga
a82e8a701d
Allow dynamically switching mode of the Apex 5 controller
...
The controller can be in XInput mode or enhanced mode, so it will always show up as an XInput controller, and the enhanced mode controller will come and go as enhanced mode is enabled or disabled in the FlyDigi Space Station app.
2025-11-01 14:49:31 -07:00
Sam Lantinga
28849fd789
Manually enable acquiring the Apex 5 controller if necessary
...
The FlyDigi Space Station app isn't available on non-Windows platforms, so we need to manually enable acquiring the controller on those platforms.
2025-11-01 14:49:31 -07:00
Sam Lantinga
524739900a
Fixed potential double-free when creating a renderer (thanks @Sackzement!)
...
Closes https://github.com/libsdl-org/SDL/pull/14371
2025-11-01 11:24:14 -07:00
Sam Lantinga
aafbf7183f
Copy shader params instead of caching a pointer to them
...
It's possible for a new texture to be allocated with the same address as a previous one, so we can't just cache the pointer value.
Fixes https://github.com/libsdl-org/SDL/issues/14369
2025-11-01 11:24:14 -07:00
Frank Praznik
3a59163614
wayland: Optimize custom cursor image lookup
...
Store the images in order from smallest to largest to simplify lookup and be able to early-out of the search loop even if there is no exact match for the scale.
2025-10-31 16:15:12 -04:00
Frank Praznik
6a510d6174
wayland: Set tablet cursors separately from pointer cursors
...
Some compositors don't implicitly use the pointer cursor when the tablet cursor is not set, and the presence of a tablet doesn't necessarily guarantee pointer capability. Set the cursor for tablet tools independently of pointer cursors.
This required refactoring of cursor state handling, as well as some tablet related structures.
2025-10-31 16:15:12 -04:00
Frank Praznik
ca569bb837
wayland: Use viewports to scale custom cursors
...
Cache the cursor image data at creation time, and use a viewport to render scaled custom cursors, instead of generating new cursor images for every scale.
2025-10-31 16:15:12 -04:00
Sam Lantinga
de5d8616bf
Updated SDL tests XCode project
2025-10-31 10:34:42 -07:00
Sam Lantinga
d97e8bd49b
Removed SDL_uikitwindow
...
This was only needed as a workaround for buggy behavior in iOS 8
2025-10-31 10:34:42 -07:00
Sam Lantinga
b46e26e65a
Added support for the UIScene life cycle on Apple platforms
...
Fixes https://github.com/libsdl-org/SDL/issues/12680
2025-10-31 10:34:42 -07:00
Sam Lantinga
b6f67dd2b2
tests: add a template Info.plist that uses the whole screen
...
The OS uses the presence of the UILaunchScreen key to determine whether to display the application in compatibility mode or display using the whole screen.
2025-10-31 10:34:42 -07:00
Sam Lantinga
09f00e397c
testsymbols: include SDL_main.h
2025-10-31 10:34:42 -07:00
Sam Lantinga
446fb65ca6
Mark the Apex 5 controller as being acquired by SDL
2025-10-30 22:35:06 -07:00