Sam Lantinga
0410328b15
Fixed warning: ordered comparison of pointer with integer zero
2024-12-29 12:05:34 -08:00
Anonymous Maarten
d5f08b8f4b
stdinc: use __has_include to detect <stdbool.h>
...
Newer emscripten SDK does an unconditional #include <stdbool.h>,
which clashes with our custom bool.h typedef
2024-12-29 20:54:12 +01:00
Anonymous Maarten
543f244965
tests: include SDL_build_config.h when HAVE_BUILD_CONFIG is defined
2024-12-29 20:08:06 +01:00
Ozkan Sezer
c2121dd9a2
testcamera: fix MSVC build failure due to C4244 warning.
2024-12-29 21:28:02 +03:00
Sam Lantinga
5c84d38822
testcamera: don't pick a frame size larger than the maximum texture size
...
Ran into this on a Huawei Y6 phone, where the back facing camera can generate 4160x2000 frames, but the maximum texture size was 4096x4096
2024-12-29 09:41:00 -08:00
Sam Lantinga
6e1177ac03
Include tray function prototypes
2024-12-29 08:15:30 -08:00
Ryan C. Gordon
c030e6f782
examples/pen/01-drawing-lines: Match render target size to renderer output.
...
Otherwise, on HiDPI displays (like a retina iPad), the lines you draw don't
match where the pen is touching.
2024-12-28 15:36:02 -05:00
Ryan C. Gordon
0ad3a18937
uikit: reworked Apple Pencil code.
...
This manages axes correctly across events, sorts out the math to convert from
Apple's data to what SDL expects, and a few other tweaks and corrections.
2024-12-28 15:36:02 -05:00
Ryan C. Gordon
f6143da617
uikit: Patched to compile, added to Xcode project.
2024-12-28 15:36:02 -05:00
Salman Alshamrani
774e38d073
uikit: Initial Apple Pencil support.
...
Reference Issue #9911 .
Reference Issue #10516 .
2024-12-28 15:36:02 -05:00
Frank Praznik
5acd7fe208
wayland: Prevent popup configure events from overwriting the current size with old data
...
Don't apply the supplied dimensions if they haven't changed from the last configuration event, or a newer size set programmatically can be overwritten by old data.
This check is already being done for toplevel windows, but was never added to the popup configure event.
2024-12-28 14:23:30 -05:00
Sam Lantinga
c714b1a38b
Fixed public header inclusion in the Xcode project
2024-12-28 08:47:00 -08:00
Ramez Ragaa
cf439d5c63
Fix dib-to-bmp logic in SDL_windowsclipboard.c
...
This addresses the issue #11762 by reading the biCompression field to
determine the correct size of the color table, and consequently the
correct bih_size value.
2024-12-28 08:31:52 -08:00
Sam Lantinga
ec29d3fd66
Define NDEBUG in release Xcode builds
2024-12-28 08:25:09 -08:00
Sam Lantinga
92b7054870
Add SDL_tray.h to the public framework headers
...
Fixes https://github.com/libsdl-org/SDL/issues/11760
2024-12-28 08:15:19 -08:00
SDL Wiki Bot
1a466b5548
Sync SDL3 wiki -> header
...
[ci skip]
2024-12-28 16:06:09 +00:00
Ozkan Sezer
ec8a780ad4
tray, unix: fix -Wformat warnings
...
src/tray/unix/SDL_tray.c: In function 'get_tmp_filename':
src/tray/unix/SDL_tray.c:345: warning: format '%ld' expects type 'long int', but argument 2 has type 'size_t'
src/tray/unix/SDL_tray.c: In function 'get_appindicator_id':
src/tray/unix/SDL_tray.c:361: warning: format '%ld' expects type 'long int', but argument 3 has type 'unsigned int'
2024-12-28 18:37:56 +03:00
Anonymous Maarten
cc723c9e4b
ci: run emscripten on Ubuntu 22.04
...
python3-selenium does not seem to work on Ubuntu 24.04
2024-12-28 16:20:59 +01:00
Anonymous Maarten
0cb4a94c88
cmake: really disable xrandr by default on Solaris
...
Fixes libsdl-org/SDL#10099
2024-12-28 11:55:59 +01:00
SDL Wiki Bot
4ffcb8ebab
Sync SDL3 wiki -> header
...
[ci skip]
2024-12-28 07:58:04 +00:00
Carl Åstholm
49153ebfc4
audio: Add NULL check to SDL_UnbindAudioStreams
2024-12-28 00:10:58 -05:00
Carl Åstholm
1b99467c71
audio: Make SDL_Bind/UnbindAudioStreams take const arrays
2024-12-28 00:10:58 -05:00
Anonymous Maarten
0be6dc5734
cmake: disable xrandr by default on Solaris
...
Fixes libsdl-org/SDL#10099
2024-12-28 04:01:32 +01:00
Anonymous Maarten
4fbd6cba60
cmake: Solaris' SunPro has alternative way to link to pthread libraries
...
Fixes libsdl-org/SDL#10096
2024-12-28 03:46:17 +01:00
Anonymous Maarten
e25cc7a88f
cmake: cocoa video backend needs IOKit framework
...
Fixes libsdl-org/SDL#11628
2024-12-28 03:41:36 +01:00
Anonymous Maarten
38dd6bcd32
docs: gradle needs package identifier + change example Activity class path
2024-12-28 03:22:53 +01:00
Anonymous Maarten
f1232de3d2
cmake: add_dependencies must have at least 2 arguments
2024-12-28 02:43:12 +01:00
Anonymous Maarten
2664d36faf
cmake: avoid parallel generation of headers through intermediate target
...
See
https://cmake.org/cmake/help/latest/command/add_custom_command.html#example-generating-files-for-multiple-targets
2024-12-28 02:39:12 +01:00
SDL Wiki Bot
609b147432
Sync SDL3 wiki -> header
...
[ci skip]
2024-12-28 01:12:59 +00:00
Lucas Murray
cc24518c41
render: Update GPU backend to use the new present workflow
2024-12-27 17:11:55 -08:00
Carl Åstholm
a0e537b9c0
examples: Fix dead links in app metadata
2024-12-27 17:10:52 -08:00
Anonymous Maarten
df1f1c2e12
cmake: don't create relocatable packages by default with non-MSVC toolchains
2024-12-28 02:04:00 +01:00
Anonymous Maarten
af3d97dcac
Update build-scripts/build-release.py
2024-12-28 01:41:10 +01:00
Frank Praznik
bc448fa445
win32: Use the nearest monitor size for calculating maximized window dimensions
...
Default to using the nearest monitor, instead of null, as a null monitor can be sent when restoring from minimized, which results in the restored, maximized window being the wrong size.
2024-12-27 18:17:55 -05:00
Frank Praznik
599b4ef254
win32: Fix maximizing borderless windows
...
Even if a borderless window doesn't have resizable borders set, the WS_MAXIMIZEBOX property needs to be set on the window, or maximizing it will make it fullscreen and cover the taskbar, instead of only filling the usable desktop space, as is usually expected from a maximized window. This style property needs to be retained until the window is no longer maximized, even if the resize flag is toggled off, or restoring from minimized can fail.
2024-12-27 18:17:55 -05:00
Frank Praznik
1c52e290a3
video: Don't overwrite pending size values when setting the window min/max
2024-12-27 18:08:26 -05:00
Sam Lantinga
9a4d29699d
Don't use connection state from the Nintendo Switch Pro report
...
This isn't reliable for third party controllers like the 8BitDo Pro 2.
Fixes https://github.com/libsdl-org/SDL/issues/10862
2024-12-27 13:58:49 -08:00
Sam Lantinga
75a24116b5
testcontroller: show gamepad connection state
2024-12-27 13:58:49 -08:00
Sam Lantinga
22f6eed1d9
Use the NVIDIA Shield home button as the guide button
2024-12-27 12:42:06 -08:00
Sam Lantinga
c148837546
Added a Bluetooth mapping for the NVIDIA Shield Controller on Linux
2024-12-27 12:18:08 -08:00
Sam Lantinga
82a1e9f6df
Fixed the guide button for the NVIDIA Shield Controller on Linux
...
This works with firmware v1.25 and v1.35
2024-12-27 12:17:51 -08:00
Frank Praznik
ba5cf2b152
x11: Don't overwrite popup window coordinates when changing the size
2024-12-27 12:58:53 -05:00
Frank Praznik
567b828e18
wayland: Use the proper popup coordinates if the position is set while the window is hidden
2024-12-27 12:58:53 -05:00
SDL Wiki Bot
1701208f32
Sync SDL3 wiki -> header
...
[ci skip]
2024-12-27 17:25:19 +00:00
Sam Lantinga
622c3ebb94
Updated Xcode project with new tray files
2024-12-27 09:24:49 -08:00
Semphris
0461180e25
SDL_EVENT_QUIT when no window nor tray
...
SDL_HINT_QUIT_ON_LAST_WINDOW_CLOSE will not fire if there are active tray icons. This impacts only applications that create tray icons, and that at least one icon outlives the last visible top-level window. SDL_EVENT_QUIT will fire when the last active tray is destroyed if there are no active windows.
2024-12-27 09:22:27 -08:00
SDL Wiki Bot
ff139fe71b
Sync SDL3 wiki -> header
...
[ci skip]
2024-12-27 17:20:36 +00:00
Blaž Tomažič
e9290eeedf
Use pthread_setname_np
also on Android
...
Set thread name on Android the same way as we do on Linux.
Acording to Bionic source code this function is available since 2013 [1] and
hase the same signature.
[1] 2a1bb4e646
(cherry picked from commit e79b0ce2e4
)
2024-12-27 08:07:47 -08:00
Ozkan Sezer
578509c326
windows/SDL_tray.c, video/windows/SDL_surface_utils.h: use SDL_windows.h
2024-12-27 12:28:02 +03:00
Ozkan Sezer
05932e05da
tray, windows: replace ZeroMemory() with SDL_zero()
2024-12-27 12:05:00 +03:00