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
Ozkan Sezer
cd1bb6247b
video/windows/SDL_surface_utils.c: replace ZeroMemory() with SDL_zero()
2024-12-27 06:03:37 +03:00
Ozkan Sezer
50fbae9302
tray, windows: define NOTIFYICON_VERSION_4 and NIF_SHOWTIP, if missing.
2024-12-27 05:30:50 +03: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
Sam Lantinga
eb1be89e70
Cleaned up thread state handling and added thread object validation
2024-12-26 10:26:08 -08: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
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
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
Semphris
cf946e32ba
Fix memory management for Windows dialog title
2024-12-24 12:06:05 -08:00
Sam Lantinga
76920a230f
Fixed Xcode build
2024-12-24 10:49:58 -08:00
Semphriss
01b9b0edb7
Add system tray support ( #10873 )
2024-12-24 10:36:39 -08:00
Caleb Cornett
a27c139b12
GPU: Explicitly check Metal hardware support on device creation
2024-12-24 12:36:52 -05:00
Sam Lantinga
8653a5821b
Fixed mingw64 Windows build
2024-12-24 08:58:08 -08:00
Sam Lantinga
60dce94583
Fixed building with older Windows SDKs
2024-12-24 08:26:05 -08:00
L zard
c2508d5d99
Fix various #if defineds
2024-12-24 07:19:38 -08:00
L zard
f2b7495adc
SDL_camera_pipewire: use SDL_CAMERA_DRIVER_PIPEWIRE_DYNAMIC
2024-12-24 07:19:38 -08:00
Sam Lantinga
483e79bf82
Fixed mouse click count for relative mode and multiple mice
...
We'll track the click count separately for each input source, and the click distance is calculated using a point on an infinite plane that is pushed around by mouse motion deltas, unclamped by the window edge.
2024-12-23 19:00:14 -08:00
Sam Lantinga
024e5da6fb
Mouse events only get a mouse ID in relative mode
2024-12-23 17:12:50 -08:00
evertonse
8a0f649363
windows: fix BITMAPINFOHEADER values when getting bitmap from Clipboard
2024-12-23 17:00:47 -08:00
L zard
af2dbbcb53
Merge SDL_wasapi_win32 into SDL_wasapi
2024-12-23 16:54:52 -08:00
Sam Lantinga
5a2eb60389
Only save the pending flags we will restore when hiding a window
...
Fixes https://github.com/libsdl-org/SDL/issues/11564
2024-12-23 16:53:54 -08:00
Sam Lantinga
969f03d9f0
Added SDL_PROP_RENDERER_GPU_DEVICE_POINTER
...
Fixes https://github.com/libsdl-org/SDL/issues/11600
2024-12-23 16:51:43 -08:00
Sam Lantinga
3a1810f9a9
Fixed the Linux mapping for the NVIDIA Controller v1.03
2024-12-23 15:43:17 -08:00
Sam Lantinga
49610fd1e8
Leave mouse relative mode when losing focus
...
Fixes https://github.com/libsdl-org/SDL/issues/7892
2024-12-23 15:23:11 -08:00
Caleb Cornett
62124e2c28
GPU: Enable Metal validation in debug mode ( #11691 )
2024-12-23 18:08:14 -05:00
Sam Lantinga
37b87f79fb
Fixed Bluetooth Steam Controller detection on iOS and Android
2024-12-23 12:55:25 -08:00
Sam Lantinga
9a43c08146
Allow rendering during the modal resize loop on macOS
...
Fixes https://github.com/libsdl-org/SDL/issues/11508
2024-12-23 11:46:35 -08:00
Sam Lantinga
225c0e2ad9
Removed unused function declaration
2024-12-23 11:21:00 -08:00
Sam Lantinga
4add7e2005
Round the window size values when using fixed aspect ratio
...
This won't get you pixel perfect values, since the exact ratio won't necessarily be whole pixel values, but it will be closer, and matches the logic in the other branch.
2024-12-23 09:03:38 -08:00
Anonymous Maarten
f8d8bf8066
SDL_GetNumAllocations returns -1 when allocation counting is disabled
2024-12-22 12:20:04 -08:00
Anonymous Maarten
a33144fbc9
SDL_test: disable memory tracking if SDL does not count allocations
2024-12-22 12:20:04 -08:00
Sam Lantinga
2e4dc9c109
Disable tracking memory allocation counts by default
...
Fixes https://github.com/libsdl-org/SDL/issues/11099
2024-12-22 12:20:04 -08:00
Caleb Cornett
c080bb8417
GPU: Fix non-triangle D3D12 primitive topology types
2024-12-21 22:38:40 -05:00
Sam Lantinga
33442701ca
Use the monitor as the client rect for maximized borderless windows
...
Fixes https://github.com/libsdl-org/SDL/issues/9588
2024-12-21 09:19:03 -08:00
Sam Lantinga
7e298f50fe
Make windows resizable if we're about to maximize them programmatically
2024-12-21 09:19:03 -08:00