Sam Lantinga
8eeae5f686
The wayland messagebox should only be used under wayland
2025-09-20 09:06:07 -07:00
Sam Lantinga
5503fe1c1b
Fixed a memory leak in fill_device_info_usage() (thanks @digant73)
...
Fixes https://github.com/libsdl-org/SDL/issues/13998
2025-09-20 09:05:37 -07:00
Andrei Sabalenka
bb2b39b8ea
wayland: fix typo in xdg_positioner_set_anchor_rect
2025-09-20 08:53:49 -07:00
Sam Lantinga
597ef58966
Use zenity messageboxes by default on X11
...
This makes messageboxes consistent between X11 and Wayland.
2025-09-20 08:37:51 -07:00
Ozkan Sezer
9cefbab766
remove watcom compiler support from private sources
2025-09-20 03:47:02 +03:00
Frank Praznik
ac82534375
tests: Flush events after an SDL_WaitEvent() call
...
SDL_WaitEvent() will pump OS events if no poll sentinel is pending, so flush events before inserting a user event to ensure that the user event will be next in the queue.
2025-09-19 12:36:59 -04:00
Frank Praznik
9b72545634
video: Clamp HDR levels before comparing for deduplication
...
Eliminates some redundant HDR changed events due to comparing clamped and unclamped values.
2025-09-19 12:36:59 -04:00
Anonymous Maarten
1d42df07ef
ci: add macOS 26 job
2025-09-19 18:06:26 +02:00
Sam Lantinga
9e0549d8ff
Use posix_spawn_file_actions_addchdir_np() on macOS
...
posix_spawn_file_actions_addchdir() was introduced in macOS 26, but we want to be able to run on systems all the way back to macOS 15
2025-09-19 08:00:03 -07:00
Sam Lantinga
f8a1ea021b
Fixed crashes when SDL_DISABLE_INVALID_PARAMS is enabled (thanks @AntTheAlchemist!)
2025-09-19 07:43:01 -07:00
SDL Wiki Bot
84309984a4
Sync SDL3 wiki -> header
...
[ci skip]
2025-09-19 14:26:10 +00:00
Anonymous Maarten
7501f7194b
testsprite: zero initialize textures
...
LoadSprite destroys current textures before allocating new ones.
So make sure the previous (=first) textures are valid.
2025-09-19 15:37:21 +02:00
SDL Wiki Bot
4376e10ed4
Sync SDL3 wiki -> header
...
[ci skip]
2025-09-19 03:59:55 +00:00
Sam Lantinga
0eff3fe558
Fixed double-free when using window surfaces
2025-09-18 20:58:32 -07:00
Sam Lantinga
c25a0b046a
Make SDL_ObjectValid() inline for performance (thanks @mechakotik!)
2025-09-18 20:58:32 -07:00
Sam Lantinga
25b2d2c821
Use new parameter validation macro
2025-09-18 20:58:32 -07:00
Sam Lantinga
ee1c90a358
Improved handling of function parameter validation
...
SDL supports the following use cases:
* Normal operation with fast parameter checks (default):
SDL_SetHint(SDL_HINT_INVALID_PARAM_CHECKS, "1");
* Object parameters are checked for use-after-free issues:
SDL_SetHint(SDL_HINT_INVALID_PARAM_CHECKS, "2");
* Enable full validation, plus assert on invalid parameters:
#define SDL_ASSERT_INVALID_PARAMS
* Disable all parameter validation:
#define SDL_DISABLE_INVALID_PARAMS
2025-09-18 20:58:32 -07:00
Sam Lantinga
49e15904ae
Document that SDL_SCALEMODE_PIXELART is available in 3.4.0
...
Fixes https://github.com/libsdl-org/sdlwiki/issues/856
2025-09-18 20:22:15 -07:00
SDL Wiki Bot
1e2057f1fe
Sync SDL3 wiki -> header
...
[ci skip]
2025-09-18 23:10:17 +00:00
Frank Praznik
f540de87b9
wayland: Always set the last incoming clipboard seat when setting clipboard data
...
Otherwise, the clipboard will report having no or old data until events are pumped.
Fixes the automated clipboard tests.
2025-09-18 17:44:58 -04:00
Sylvain
143f65c1f8
Android: silence false Lint warnings (the class are instantiated only at correct API level)
2025-09-18 13:54:21 -07:00
Sylvain
fb0a542b2a
Android: Lint warning: LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS is API Level 30
2025-09-18 13:54:21 -07:00
Sylvain
d631cf8409
Android: Lint warning: use some explicit Locale
...
Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead
2025-09-18 13:54:21 -07:00
Sylvain
8da1021b51
Androind: Lint warning, use "apply()" instead of "commit()"
...
'Consider using apply() instead; commit writes its data to persistent storage immediately, whereas apply will handle it in the background'
2025-09-18 13:54:21 -07:00
Ethan Lee
4ee79e6493
filesystem: GetCurrentDirectory now falls back to GetBasePath when unsupported
2025-09-18 14:49:03 -04:00
Anonymous Maarten
b1b98b10d8
cmake: also install wasm debug map (optional)
2025-09-18 17:18:25 +02:00
Anonymous Maarten
447df411e6
cmake: install javascript and wasm of Emscripten tests
2025-09-18 05:28:22 +02:00
Anonymous Maarten
5dfa2cb88a
Use SDL_abort when encountering a internal fatal SDL_assertion error
2025-09-17 22:54:23 +02:00
Anonymous Maarten
a7739ceccb
Add SDL_internal macro for internal use
2025-09-17 22:54:23 +02:00
Anonymous Maarten
566e7c2379
ci: disable ccache on macOS 13 job
2025-09-17 21:50:26 +02:00
Kyle Sylvestre
3876ce3495
fix windows EOF check
2025-09-16 17:13:22 -07:00
Ryan C. Gordon
9ad04ff69e
examples/misc/01-power/README.txt: fixed wording.
2025-09-16 14:37:51 -04:00
Ryan C. Gordon
1c9127ee4d
examples: Preload onmouseover images, so it's more responsive to the user.
2025-09-16 14:22:39 -04:00
Ryan C. Gordon
efb5829124
examples/misc/01-power/README.txt: Note that this is Chrome-only for now.
2025-09-16 13:37:58 -04:00
Ryan C. Gordon
3ee29f2e7a
render: Don't default to vsync=0 on Emscripten.
...
Fixes #12805 .
2025-09-16 12:30:22 -04:00
Ryan C. Gordon
9dbf2c7c0f
examples/misc/01-power: Forgot to remove my code for building onmouseover.
2025-09-16 12:21:48 -04:00
Sam Lantinga
aca9bd02bf
Make sure DEBUG is defined for debug configurations
2025-09-16 09:12:33 -07:00
Ryan C. Gordon
f704661d22
examples: Added "misc" category for the web builds.
2025-09-16 12:08:04 -04:00
Ryan C. Gordon
e341cc44cc
examples: Added misc/01-power
2025-09-16 12:06:12 -04:00
Ryan C. Gordon
85ea2bfbf0
examples: Much, much easier way to generate thumbnail and onmouseover files.
2025-09-16 12:06:12 -04:00
ManifoldFR
8bc4e029bd
gpu/vulkan : fix clear value indexing
2025-09-16 08:45:35 -07:00
Frank Praznik
03e1523eb8
wayland: Add the libdecor toplevel bounds and constraints properties
2025-09-16 11:07:27 -04:00
SDL Wiki Bot
08d84ea516
Sync SDL3 wiki -> header
...
[ci skip]
2025-09-15 20:55:52 +00:00
Merlyn Morgan-Graham
9905309c56
Update docs to describe enum result for SDL_GetCameraPermissionState
2025-09-15 16:54:33 -04:00
Sora
964bedfdd9
fix: use productCategory instead of vendorName for joy name for apple driver
2025-09-15 11:51:06 -07:00
Andrei Alexeyev
287e786120
render/gpu: fix copypaste error in render initialization
2025-09-15 10:29:04 -07:00
Ozkan Sezer
81f2f44843
SDL_endian.h: don't add _m_prefetch hack for clang-cl if available as a builtin
...
Fixes: https://github.com/libsdl-org/SDL/issues/13952 .
2025-09-15 20:04:29 +03:00
Frank Praznik
cf646af707
Clean up old-style null check
2025-09-15 10:59:36 -04:00
Eddy Jansson
21c9f5304d
wayland: Silence unused variable warning
...
'vd' and 'd' are only used if SDL_USE_LIBDBUS is set.
2025-09-15 10:26:23 -04:00
Sam Lantinga
dac6af4ba6
Only use a transparent cursor on Windows when connected via RDP
...
VMware relies on the cursor being set to NULL to optimize relative mouse motion for games.
We should also revisit whether current RDP works better with a NULL cursor or a transparent cursor.
Fixes https://github.com/libsdl-org/SDL/issues/13700
2025-09-14 17:24:40 -07:00