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
hwsmm
e2323c1367
Refactor Android input handling and add pen support
2024-12-26 23:50:11 -05:00
hwsmm
f5fbdf7ed5
Make onNativePen available for Android
2024-12-26 23:50:11 -05:00
hwsmm
a5e8fc21b2
Add SDL_androidpen
2024-12-26 23:50:11 -05:00
hwsmm
80c39f2ff4
Expose SDL_GetPenStatus for Android pen buttons
2024-12-26 23:50:11 -05:00
Ryan C. Gordon
e3c99e3bd3
misc: Fixed typo in iOS error message.
...
(cherry picked from commit 96b4535cc7
)
2024-12-26 23:37:16 -05:00
Sam Lantinga
1413bfb185
Don't overwrite non-CRC gamepad mapping with a new mapping that specifies a CRC
...
Fixes https://github.com/libsdl-org/SDL/issues/11723
2024-12-26 20:18:26 -08:00
Sam Lantinga
948b16533c
testcamera: use the first available cameras
2024-12-26 19:23:43 -08:00
Ozkan Sezer
cd1bb6247b
video/windows/SDL_surface_utils.c: replace ZeroMemory() with SDL_zero()
2024-12-27 06:03:37 +03:00
SDL Wiki Bot
a773558517
Sync SDL3 wiki -> header
...
[ci skip]
2024-12-27 02:32:08 +00:00
Ozkan Sezer
50fbae9302
tray, windows: define NOTIFYICON_VERSION_4 and NIF_SHOWTIP, if missing.
2024-12-27 05:30:50 +03:00
Sam Lantinga
c744c8fc0b
Document how to check for gamepad capabilities
...
Fixes https://github.com/libsdl-org/SDL/issues/10593
2024-12-26 17:49:56 -08:00
Sam Lantinga
a8d585aac3
Don't try to enumerate possible texture failure reasons.
...
This can cause misunderstanding about how texture creation works, as seen in https://github.com/libsdl-org/SDL/issues/9504 . Instead let people check the error for more information on why creation may have failed.
2024-12-26 17:17:08 -08:00
Sam Lantinga
ca17d19f90
Updated iOS file path documentation
...
Fixes https://github.com/libsdl-org/SDL/issues/10290
2024-12-26 17:00:01 -08:00
Ryan C. Gordon
7bbe6025be
misc: Make SDL_OpenURL work with VisionOS, tvOS, etc.
2024-12-26 16:50:52 -08:00
Ryan C. Gordon
ffed1c50c0
misc: Fix SDL_OpenURL on newer iOS releases.
...
Apparently as of iOS 18.2, the deprecated API we were using just refuses to
work at all.
Fixes #11728 .
2024-12-26 16:50:52 -08:00
Frank Praznik
1a6e139dde
win32: Only recalculate the position on show for popup windows
...
Regular child windows aren't positioned relative to the parent.
2024-12-26 18:18:46 -05:00
Frank Praznik
cf220ea4f1
win32: Fix popup positioning
2024-12-26 17:12:14 -05:00
Ozkan Sezer
17ef0c1237
SDL_video.c: replace strlcpy with memcpy in SDL_ShowMessageBox()
2024-12-27 00:01:56 +03:00
Ryan C. Gordon
8fde28813e
SDL_tray.h: Filled in doxygen for a few minor missing things.
2024-12-26 14:10:53 -05:00
SDL Wiki Bot
17df3fe836
Sync SDL3 wiki -> header
...
[ci skip]
2024-12-26 18:26:48 +00:00
Sam Lantinga
eb1be89e70
Cleaned up thread state handling and added thread object validation
2024-12-26 10:26:08 -08:00
SDL Wiki Bot
7647f16ae1
Sync SDL3 wiki -> header
...
[ci skip]
2024-12-26 18:03:51 +00:00
Salman Alshamrani
eadc64973a
Reset text field content on text input stop
2024-12-26 10:03:34 -08:00
Lucas Murray
b2c2a483e8
GPU: Rename HDR10_ST2048 to HDR10_ST2084
2024-12-26 09:47:13 -08:00
Lucas Murray
fe39509b85
GPU: Doc touch ups
2024-12-26 09:47:13 -08:00
SDL Wiki Bot
b8036bdd41
Sync SDL3 wiki -> header
...
[ci skip]
2024-12-25 21:15:58 +00:00
Moritz
ca4f5dd40d
Added SDL_GetThreadState
2024-12-25 13:15:18 -08:00
lunasorcery
b7dac5072b
correct termination of windows openfiledialog filters
2024-12-25 11:42:32 -08:00
Maia
0becdad392
Add missing includes to SDL_tray.h
2024-12-25 07:54:54 -08:00
Brody Eller
5bf742daa6
Fix documentation for SDL_sinf
2024-12-24 20:41:41 -08:00
Anonymous Maarten
bed16f77d1
cmake: define HAVE_MALLOC_H when malloc.h is found
2024-12-25 02:10:53 +01:00
Sam Lantinga
b2178857dc
Corrected CoreAudio surround sound channel layouts
...
Fixes https://github.com/libsdl-org/SDL/issues/11709
2024-12-24 15:03:25 -08:00
expikr
f40a530fd9
subclass the builtin system message class instead
2024-12-24 12:06:47 -08:00