Ryan C. Gordon
aa534c3ac3
core: Fixed incorrect comment in core/windows/SDL_windows.h.
2024-10-07 16:55:30 -04:00
rabbit-ecl
6ae5666acf
Check for VK_SUBOPTIMAL_KHR also in vkQueuePresentKHR ( #11113 )
...
This is already handled for vkAcquireNextImageKHR.
2024-10-07 13:01:10 -07:00
Sam Lantinga
06bd214af6
Fixed warnings building on Android
2024-10-07 11:11:27 -07:00
Sam Lantinga
65539bc4f7
Make sure trackpad state is updated when button presses are delivered
...
Fixes https://github.com/libsdl-org/SDL/issues/11085
2024-10-06 14:28:06 -07:00
Sam Lantinga
03b259893a
Fixed return value of SDL_AddGamepadMapping()
...
Fixes https://github.com/libsdl-org/SDL/issues/11095
2024-10-06 14:20:30 -07:00
Jan Sedivy
c2b98e21ba
macOS: Add hint for smooth SDL_EVENT_MOUSE_WHEEL values
2024-10-06 12:36:42 -07:00
Frank Praznik
2fa8acb084
x11: Refresh the global cursor coordinates when confining the pointer
...
XGrabPointer can warp the cursor into the window when confining, so set the flag to refresh the global coordinates when queried.
2024-10-06 14:48:24 -04:00
David Fort
e00b1fdd67
clipboard: include mime types in SDL_ClipboarUpdate
...
This patch modifies the clipboard handling so that when we receive an external
clipboard update, the suppported mime types are included in the SDL_ClipboarUpdate
event. The patch also introduces the owner field that allows to know if the update
is because we own the clipboard (internal update) or if it was an external update.
2024-10-05 18:19:10 -07:00
bubbleguuum
2880b40e33
fix pipewire prototype
2024-10-05 18:16:12 -07:00
zshoals
1ca45c5891
Fix typo: DiretMedia->DirectMedia
2024-10-05 00:08:01 -04:00
Sam Lantinga
00385951a1
Use file descriptor I/O for process pipes
...
Use low level non-blocking I/O for process pipe streams. This may fix issues with data not getting through the pipe occasionally.
Related: https://github.com/libsdl-org/SDL/issues/11006
2024-10-04 12:24:17 -07:00
Sam Lantinga
6c64c62114
Rename SDL_BUTTON() to SDL_BUTTON_MASK()
...
Fixes https://github.com/libsdl-org/SDL/issues/11056
2024-10-04 09:13:59 -07:00
Sam Lantinga
fe2880fcda
Rename SDL_SetThreadPriority() to SDL_SetCurrentThreadPriority()
...
Fixes https://github.com/libsdl-org/SDL/issues/11055
2024-10-04 08:57:03 -07:00
Daniel Ludwig
69196ab30d
Change evasive library handle to SDL_SharedObject*
2024-10-04 05:18:40 -04:00
Ryan C. Gordon
3a6a3ab64f
gpu: Fix memory leak in Vulkan backend.
2024-10-04 04:46:28 -04:00
Sam Lantinga
43e7ce7dfc
Updated to version 3.1.3 for the preview release
2024-10-03 23:01:55 -07:00
Ryan C. Gordon
9a5d5a2839
video: Improve the EGL attribute callbacks.
...
Now it has access to information it needs and it's clear who is reponsible
for memory management.
Fixes #11039 .
2024-10-03 22:52:52 -07:00
Petar Popovic
d4143e02d1
Always set checked_monotonic_time when calling CheckMonotonicTime()
2024-10-03 17:11:34 -07:00
Petar Popovic
020fb6889c
Removed unnecessary const-qualifiers in src and test files
2024-10-03 17:39:08 -04:00
Petar Popovic
b8e8dcaa9a
Add void to openbsd function prototypes
2024-10-03 13:55:21 -07:00
Petar Popovic
0e909d2785
Removed redundant condition in src/events/SDL_pen.c
2024-10-03 13:42:18 -07:00
Ryan C. Gordon
191f3ecbbc
render: Restore previous policy for converting window/render coordinates.
...
Before this commit, it would adjust for the logical presentation settings.
Now, it works as it did before the logical presentation render target was
removed: it takes current viewport and scale into account, as well.
Fixes #10978 .
2024-10-03 16:31:56 -04:00
Petar Popovic
3246df8bd3
Remove redundant SDL_Vulkan_GetResultString() declaration
2024-10-03 13:29:53 -07:00
Ethan Lee
a0de6c4abf
Add properties to SDL_IOStreams returned by IOFromMem
2024-10-02 22:09:09 -07:00
Petar Popovic
f4cea5e019
Removed const qualifiers from SDL_CreateHashTable() parameter types
2024-10-02 16:29:49 -07:00
Ryan C. Gordon
d287feaddf
render: Remove non-pointer args' const qualifiers on SDL_RenderTextureRotated.
...
Reference Issue #11032 .
2024-10-02 15:31:20 -04:00
Ryan C. Gordon
8b4f5f09c1
dynapi: It's a Python script now, not a perl script.
...
Fixes #11032 .
2024-10-02 15:27:47 -04:00
Sam Lantinga
47450425fd
Allow iterating just the keys or values in a hashtable
2024-10-02 10:20:00 -07:00
Sam Lantinga
d5fe6dd627
Don't use const for non-pointer API parameters
2024-10-02 09:17:31 -04:00
Sam Lantinga
eced9f58a9
Added a userdata parameter for EGL attribute callbacks
...
Fixes https://github.com/libsdl-org/SDL/issues/11013
2024-10-01 11:45:19 -07:00
Sam Lantinga
4fa92d233d
Include stdbool.h when using Visual Studio 2017+
...
Also cleaned up some incorrect return values from bool functions.
2024-10-01 09:57:59 -07:00
Sam Lantinga
3b3c4a79b6
Don't close file descriptors already handled by AddFileDescriptorCloseActions()
...
Fixes https://github.com/libsdl-org/SDL/issues/10997
2024-10-01 09:32:14 -07:00
Anthony
5f5379dc99
Add SDL_IsTV()
( #11004 )
...
Moved SDL_IsAndroidTV() out of public API, to match SDL_IsAndroidTablet().
Added SDL_IsTV(), to mirror existing SDL_IsTablet().
2024-10-01 09:20:00 -07:00
Ryan C. Gordon
0b5e01a305
loadso: library handles are now SDL_SharedObject*
instead of void*
.
...
Improved the SDL_loadso.h documentation a little, too.
Fixes #11009 .
2024-10-01 12:16:10 -04:00
Sam Lantinga
3234a3b902
Simplified internal SDL_Surface structure
2024-10-01 08:10:04 -07:00
Sam Lantinga
1f3a0d12e6
Made texture size and format public in the API
...
Also added refcount to textures so they can be retained by application code.
2024-10-01 08:10:04 -07:00
Ryan C. Gordon
5136b30652
render: SDL_ConvertEventToRenderCoordinates() now handles pen events.
...
Reference Issue #10863 .
2024-10-01 10:30:36 -04:00
Ozkan Sezer
13c5d1092f
hidapi: update hid_write() for windows from mainstream.
...
Returns bytes_written if WriteFile returns synchronously
Relevant mainstream discussions:
https://github.com/libusb/hidapi/pull/697
https://github.com/libusb/hidapi/issues/695
2024-09-30 19:49:44 -07:00
cosmonaut
3eab599977
just force the barrier on UpdateTexture actually
2024-09-30 19:47:27 -07:00
cosmonaut
e17741a6cb
Render GPU: Only cycle on update if entire texture is replaced
2024-09-30 19:47:27 -07:00
Sam Lantinga
45ad763de5
Disable backface culling and use a constant rectangle winding order.
...
This makes it so we don't have to surface the rectangle winding order for applications that want to use the raw geometry API.
2024-09-30 19:12:02 -07:00
cosmonaut
fa14b53273
GPU Vulkan: Clear up some swapchain edge cases
2024-09-30 15:10:27 -07:00
David Fort
818d7d892a
x11: store all atoms in a specific struct
2024-09-30 11:13:08 -07:00
David Fort
801870c8cf
video: cache some more atoms under X11
...
This patch adds the caching of some atoms used by the clipboard.
2024-09-30 11:13:08 -07:00
Evan Hemsley
afdf325fb4
GPU: Add swapchain dimension out params ( #11003 )
2024-09-30 10:23:19 -07:00
Anonymous Maarten
b3388d5753
Haiku does not have fdatasync, but has fsync
...
https://dev.haiku-os.org/ticket/17378
2024-09-30 15:10:03 +02:00
Sam Lantinga
0b64520997
hashtable: fixed unused-parameter warnings
...
These show up with -Wextra when dropped into other projects.
2024-09-29 23:56:43 -07:00
Ryan C. Gordon
1787d6ca5c
main: SDL_AppQuit() now reports the result value.
...
Fixes #10994 .
2024-09-29 23:24:04 -04:00
Ryan C. Gordon
6a7f8b74f1
filesystem: SDL_GlobDirectory shouldn't strip final '/' if the path is "/".
...
This is common on Emscripten, where the base directory is "/".
2024-09-29 23:09:04 -04:00
Anonymous Maarten
f6055432c8
Fix null-pointer dereference on failing SDL_SYS_CreateProcess
2024-09-30 03:03:33 +02:00