|
f498c281
|
2021-06-02T14:10:50
|
|
fixed build with SDL_JOYSTICK_RAWINPUT enabled after commit b81969d46f4b
See: https://github.com/libsdl-org/SDL/pull/4388#issuecomment-852713792
|
|
f5b87273
|
2021-06-02T08:32:43
|
|
Fixed bug #4397 - update IOS documentation
|
|
c289bad9
|
2021-03-22T11:22:31
|
|
In x11, GetDisplayDPI can give incorrect or unusable DPI information. Using XGetDefaults to get the Xft DPI if it's available and returning that. This could allow you to figure out DPI scale.
|
|
4522cb1d
|
2021-05-25T03:17:03
|
|
Changing variable from float to int, this way we can check it's value without having to do an unnecessary conversion. Then do explicit conversions later on if we need.
|
|
6a2af48a
|
2021-05-06T15:43:16
|
|
CMake: Generic check for desktop GL and EGL on Linux systems
|
|
fd121b5e
|
2021-05-13T17:46:55
|
|
development list has moved to forum
|
|
ded02387
|
2021-05-16T17:16:54
|
|
Make CMake script more accurate to autoconf script
DBus, IBus and inotify is now able to be used outside Linux like in configure.
KMSDRM input is now working on FreeBSD with CMake compilation.
|
|
d3244035
|
2021-05-17T01:24:35
|
|
wayland: Add support for maximized/restored events
|
|
fc508eab
|
2021-05-23T15:59:20
|
|
kmsdrm: remove redundant modeset_pending flag
this variable was added in commit 2067a7db8e4a36ba40ab34a55b3166ca28638a60 and
ultimately tracks if this is a surface's first present. checking if the current
bo is NULL provides the same functionality and cuts down on a redundant piece
of state potentially getting out of sync in the future
|
|
4c965b7a
|
2021-05-23T16:09:27
|
|
kmsdrm: fix SetDisplayMode binding the the wrong surface / context
SetDisplayMode needs to recreate the EGL surfaces, which then need to be
bound along with the correct context in each rendering thread
commit 3a1d7d9c9ac670bf35cfa8ebf3706a1e2a3e5de4 removed this behavior which
has broken using SetDisplayMode when rendering with multiple contexts
the commit message was rather vague, but if the surfaces do need to be
created immediately, this process probably needs to be split such that
surface is created immediately, but the binding is deferred
|
|
0219928d
|
2021-05-23T16:06:40
|
|
kmsdrm: honor mode previously set by SDL_SetWindowDisplayMode when enabling fullscreen
and remove duplicate SDL_WINDOWEVENT_RESIZED event
commit 2067a7db8e4a36ba40ab34a55b3166ca28638a60 made SDL_SetWindowSize and
SDL_SetWindowFullscreen modify the display mode previously set by a call to
SDL_SetWindowDisplayMode
as far as I understand the SDL API, calling SDL_SetWindowDisplayMode followed
by calling SDL_SetWindowFullscreen(..., SDL_WINDOW_FULLSCREEN) is the correct
way to mode set / switch to fullscreen
this change restores that functionaliy when switching to SDL_WINDOW_FULLSCREEN,
but other cases are still modifying the display mode set by the user. rather
than modifying the display mode set by the user, it seems this logic inside of
KMSDRM_ReconfigureWindow should be pushed further down into KMSDRM_CreateSurfaces
(as it was originally) to only modify the final mode that's set (based on the
fullscreen flags), but not override the mode requested by the user
|
|
fd5de93a
|
2021-05-23T16:05:39
|
|
kmsdrm: fix gbm surface dimensions not matching the mode being set
commit 2067a7db8e4a36ba40ab34a55b3166ca28638a60 introduced new surface_w and surface_h
variables which were passed to gbm_surface_create rather than the dimensions from the
drmModeModeInfo structure. commit 5105ecf8b1b37ab4e4b8344550c90dd69f49909e further
refactored this code and no longer synchronized these variables inside
KMSDRM_SetDisplayMode, breaking it
this change removes the variables since they're seemingly redundant to begin with
|
|
30359a68
|
2021-06-01T20:11:59
|
|
Android: document workaround to use JNI on native thread (see bug #4406)
|
|
b63cb822
|
2021-05-30T01:57:56
|
|
Added T500RS to known wheel list
|
|
b81969d4
|
2021-05-17T14:50:33
|
|
Be more explicit about Xbox 360/One device ids.
When Xbox One/Series Controllers are connected via USB on Windows they all are using `XBOXGIP` driver and produce a special ProductID `0x02FF` (GIP software PID) for any connected controller.
On the other hand `Xbox 360 Wireless Controller Reciever` (PID 0x0719) is using `XUSB` driver and produces special ProductID `0x02A1` (XUSB software PID) for each connected Xbox 360 Wireless Controller.
Also fixed Xbox One Series X Controller comment.
|
|
86ee383f
|
2021-05-25T09:59:45
|
|
Removed duplicate SDL_AtomicGet()
|
|
fed84650
|
2021-05-27T10:40:41
|
|
loadbmp: Attempt to handle small palettes better.
Only adjust the biClrUsed field if it is set to zero in the bitmap, and make
some effort to make sure we don't overflow a buffer in any case.
This was triggering an issue with the sailboat bmp used for testpalette.c in
SDL 1.2, which is an 8-bit paletted image with 66 palette entries instead of
256. See discussion at https://github.com/libsdl-org/sdl12-compat/issues/63
This change might be a problem, but there's no indication this code, which
originally landed in SDL_image 17 years ago with a large rewrite, is actually
fixing a specific issue. I'm also not sure we should actually make an effort
to accept a bmp that has a biClrUsed field that is both non-zero and _also_
incorrect.
|
|
db146e66
|
2021-05-25T10:34:04
|
|
Fixed warnings building with Visual Studio
|
|
3fcaf5b4
|
2021-05-25T10:33:30
|
|
Fixed incorrect axis scaling for Nintendo Switch controllers
|
|
75725608
|
2021-05-25T14:56:56
|
|
SDL_thread.h: move libc header includes before begin_code.h.
|
|
7a7cba4b
|
2021-05-25T14:56:37
|
|
config.guess, config.sub: fix permissions
|
|
157c3f80
|
2021-05-21T09:45:08
|
|
[SDL] Minimize number of system calls when handling WM_INPUT raw input messages.
Details:
Currently doing 4 system calls per WM_INPUT message, which can cause the thread handling the message loop to be swapped out several times:
* GetProp - to get window data from the window handle
* GetRawInputData - to retrieve the raw input data
* 2 calls to GetMessageExtraInfo - to ignore synthetic mouse events generated for touchscreens
In this change:
* Replaced GetProp by iterating the list of windows maintained by SDL (with a fallback to GetProp). Note that this will affect all messages and not just WM_INPUT
* only calling GetMessageExtraInfo if a touchscreen has been detected
Fix for https://jira.valve.org/browse/CSGO-4855
@saml
|
|
dbbc725f
|
2021-05-19T14:25:48
|
|
Remove WSCONS mouse scaling
|
|
2aa14b38
|
2021-05-19T14:24:58
|
|
Add missing key to WSCONS-to-SDL conversion table
|
|
c63a62ae
|
2021-05-18T23:51:50
|
|
updates to config.guess and config.sub from mainstream.
|
|
333c8e75
|
2021-05-17T11:54:05
|
|
The PS5 driver supports Joystick LED
|
|
b5b7804e
|
2021-05-15T00:50:20
|
|
minor update to os2 makefile. (binary output doesn't change.)
|
|
646ddfb7
|
2021-05-15T00:22:50
|
|
minor watcom build fixes.
|
|
be5356af
|
2021-05-14T14:44:13
|
|
winrt: Fix support for multiple simultaneous mouse button presses
|
|
62a562de
|
2021-05-12T23:37:18
|
|
X11: use x11sym loaded functions (see bug #3978)
|
|
531d83bf
|
2021-05-12T23:13:48
|
|
X11: allow using touchscreen, while pointer is grabbed (see bug #3978)
|
|
ddc6be35
|
2021-05-12T20:43:10
|
|
KMSDRM on Dragonfly BSD doesn't work without being root
|
|
9e1d7bae
|
2021-05-12T17:43:39
|
|
Added T300RS to known wheel list
|
|
e1db4b82
|
2021-05-11T14:08:17
|
|
egl: Don't crash if we failed halfway through SDL_CreateWindow.
|
|
f2f451a5
|
2021-05-10T13:29:54
|
|
wayland: Call SetWindowBordered at the end of ShowWindow
|
|
c5dd9964
|
2021-04-07T12:14:16
|
|
Copied X11 error handler code from SDL_x11opengl.c
Avoids needing to malloc to hold the error string.
|
|
b3b4677e
|
2021-04-07T11:17:52
|
|
(X11) Set _NET_WM_NAME properly, fixes Unicode window titles
Removes deprecated code meant to support extremely ancient, pre-UTF-8
versions of Xorg. Uses new xlib API's for doing this same thing.
Closes #4288.
|
|
f4ab1c94
|
2021-05-10T13:08:34
|
|
gamecontrollerdb: Add entry for the 8BitDo Receiver for Linux.
Fixes #3048.
|
|
bedc509a
|
2021-05-10T13:04:59
|
|
gamecontrollerdb: added entry for PowerA XBox One Controller for Linux.
Fixes #3910.
|
|
efbb6ff9
|
2021-05-10T12:42:28
|
|
wayland: Create the server decorations after the toplevel has been configured
|
|
9dc97afa
|
2021-05-08T12:39:50
|
|
cocoa: Report an error if SDL_SetClipboardText() isn't using UTF-8 encoding.
Fixes #4110.
|
|
107db2d8
|
2021-05-07T12:43:35
|
|
Enable TV game mode by default on Android
|
|
9231f1f1
|
2021-05-07T12:29:03
|
|
Added support for the PS5 controller on iOS and tvOS
|
|
2ad73db6
|
2021-05-07T12:28:57
|
|
Merge commit '889cebb7c20d4195e5d4ac344a2175f2490354cc' into main
|
|
e589810c
|
2021-05-07T12:28:55
|
|
Merge commit '31637ddeea1e302c77193341b2006d45dc54de98' into main
|
|
6d4991b8
|
2021-05-07T12:28:53
|
|
Merge commit 'f309d0649d37022ad49bc468c77dd87bf82f261b' into main
|
|
e8eb0b15
|
2021-05-07T12:28:51
|
|
Merge commit '58884e4c1bb455db90a35df3f7480cfd355eb8c6' into main
|
|
19a9e81c
|
2021-05-07T12:28:50
|
|
Merge commit 'c69fde348fafcb90200a148b711137c464ffa7de' into main
|
|
71e45a0b
|
2021-05-07T12:28:48
|
|
Merge commit '006378b9213e3e04ea2b9c591afe2a44e75e6867' into main
|
|
981532fb
|
2021-05-07T12:28:47
|
|
Merge commit '424bbaec069f0d94857095dcdfacba6246282936' into main
|
|
95b7b879
|
2021-05-07T12:28:45
|
|
Merge commit '20928550350d4d4c5d78f98b61e7e08d219a5475' into main
|
|
8b8956da
|
2021-05-07T12:28:43
|
|
Merge commit '3d47ddc422de1a4209525a759b3bc46a4ac69116' into main
|
|
069a68a5
|
2021-05-07T12:28:42
|
|
Merge commit '7b284dbb34a8c34f5d6f79c58c860c9f7894fd56' into main
|
|
12b7b821
|
2021-05-07T12:28:40
|
|
Merge commit '9161f95166f3d8e42248c1156e35255d4ebdc6a0' into main
|
|
2b203add
|
2021-05-07T12:28:38
|
|
Merge commit 'c54c16d353f206162cdbb125c0847b4645e096a3' into main
|
|
1e208c64
|
2021-05-07T12:28:37
|
|
Merge commit '227021b6470d07f86e209d89f176ec8e6d952a17' into main
|
|
f1fa836b
|
2021-05-07T12:28:35
|
|
Merge commit '13472cec6764aec2e06a3c66ec1b139baa680aa3' into main
|
|
cf1e8503
|
2021-05-07T12:28:33
|
|
Merge commit 'a74f888ff9ed1254e9b9965a27d68e0526e2c0f8' into main
|
|
63015e44
|
2021-05-07T12:28:32
|
|
Merge commit '8ac0fb52cb13e5856aa7f4a3fd0598d3ec58283f' into main
|
|
0ebf56b5
|
2021-05-07T12:28:30
|
|
Merge commit '1f3df900f919e7177e480e63c07447db232564a1' into main
|
|
5a95ff80
|
2021-05-07T12:28:28
|
|
Merge commit 'fcbf19b764a9f6fed1db6a1d79a2f2f3fa1338d6' into main
|
|
572dfb4f
|
2021-05-07T12:28:27
|
|
Merge commit 'c93e3b36074ddb2ed986cbacc5e9d4f3a60db343' into main
|
|
a734ccec
|
2021-05-07T12:28:25
|
|
Merge commit 'b62642974595976a0c47c5b854eea51b2703fbeb' into main
|
|
4c7f8a74
|
2021-05-07T12:28:23
|
|
Merge commit 'f8695185331460106f34286ebe466cb605f85bb6' into main
|
|
9cf1b391
|
2021-05-07T12:28:22
|
|
Merge commit '21349901ea250483600cbe4771d865cc06f6b538' into main
|
|
889cebb7
|
2021-05-05T14:08:30
|
|
Wayland touch inputs send normalized coords
Resolves #4361
|
|
31637dde
|
2021-05-04T14:59:29
|
|
Generic check for desktop GL and EGL on Linux systems
|
|
f309d064
|
2021-05-04T11:23:54
|
|
include: Document timing issue with SDL_GetWindowBordersSize
|
|
58884e4c
|
2021-05-04T00:23:40
|
|
SDL_audiocvt.c: fixed MSVC double->float conversion warnings.
|
|
c69fde34
|
2021-05-02T16:43:01
|
|
wayland: Maximize/Restore should set the relevant window flags.
Also, Maximize should be ignored for fixed-size windows.
|
|
006378b9
|
2021-05-02T18:30:32
|
|
fix NULL frame_callback access
|
|
424bbaec
|
2021-05-01T18:53:12
|
|
wayland: destroy frame callback when window is destroyed
|
|
20928550
|
2021-05-01T09:00:24
|
|
wayland: Guard surface_frame_listener for OpenGL, document why it exists
|
|
3d47ddc4
|
2021-05-01T08:57:37
|
|
wayland: Use refresh_rate to calculate max_wait in SwapWindow
|
|
7b284dbb
|
2021-04-30T22:01:48
|
|
EglChooseConfig: choose an accelerated configuration
- especially because we can be promoted to true color 888
make sure we don't select a potentially software implementation
- hopefully fix bug #1482 (EGL ChooseConfig selects software renderer on Android)
|
|
9161f951
|
2021-04-27T02:25:57
|
|
egl: Reject attempts to set negative swap intervals
|
|
c54c16d3
|
2021-04-30T13:19:36
|
|
wayland: don't hang in SDL_GL_SwapBuffers if the compositor is ghosting us.
If you hide a window on Mutter, for example, the compositor never requests
new frames, which will cause Mesa to block forever in eglSwapBuffers to
satisfy the swap interval.
We now always set the swap interval to 0 and manage this ourselves, handing
the frame to Wayland when it requests a new one, and timing out at 10fps just
to keep apps moving if the compositor wants no frames at all.
My understanding is that other protocols are coming that might improve upon
this solution, but for now it solves the total hang.
Fixes #4335.
|
|
227021b6
|
2021-04-30T11:25:20
|
|
SDL_windowsmessagebox.c (MessageBoxDialogProc): fix calling convention.
|
|
13472cec
|
2021-04-30T09:48:29
|
|
Fixed bug #4228: move from jcenter() to mavenCentral()
SDL can use relinker. If it's enabled on your project, you need to update to version 1.4.3
|
|
a74f888f
|
2021-04-29T22:25:00
|
|
Fixed bug #4337 - compilation of 'SDL_vulkan_utils' fails with 'VK_ERROR_INCOMPATIBLE_VERSION_KHR' undeclared
|
|
8ac0fb52
|
2021-04-29T09:29:02
|
|
OpenSLES: CloseDevice() is called at higher level, if OpenDevice() fails
- explicit initialization of static variables
|
|
1f3df900
|
2021-04-28T23:40:26
|
|
Error missing 'flags' initialization (see bug #2881)
|
|
fcbf19b7
|
2021-04-28T21:04:47
|
|
AAudio: make sure stream is not null to prevent crash in RequestStop (see #3710)
|
|
c93e3b36
|
2021-04-28T10:43:28
|
|
Fixed bug #2881 - SDL_RLEsurface may encode RGB888 if it has no color key (Thanks Simon Hug)
To encode with BLEND mode, it needs a valid alpha channel
|
|
b6264297
|
2021-04-27T11:10:41
|
|
Merge remote-tracking branch 'refs/remotes/origin/main'
|
|
f8695185
|
2021-04-27T11:07:51
|
|
Audio: normalize conversion Stereo to 5.1, Quad to 7.1, 5.1 to 7.1 (bug #4104)
|
|
21349901
|
2021-04-27T10:57:48
|
|
Audio: convert 5.1 to 7.1, use right-surround for r-front and r-back (see #4104)
|
|
8527c583
|
2021-04-27T01:36:23
|
|
cocoa: Fix recreated windows that are both borderless and resizable.
These would accidentally get a titlebar because the "borderless" style mask
is zero but the resizable attribute adds a bit. I assume this happens because
you used to need window decoration to resize a window in macOS, but this
changed in later releases.
This only caused problems when recreating a window (you had an
SDL_WINDOW_OPENGL window and tried to create a Metal SDL_Renderer on it, etc).
Fixes #4324.
|
|
40210f89
|
2021-04-26T15:54:14
|
|
winrt: Always use a thread for joystick support
|
|
2fdbae22
|
2021-04-26T18:43:28
|
|
cocoa: Remove mouse event tap.
It doesn't appear to work anymore, and was disabled by default anyhow, since
the needed APIs are forbidden on the Mac App Store.
A better solution to lock the mouse to the window on macOS would still be
welcome. CGAssociateMouseAndMouseCursorPosition() works fine for relative
mouse mode, this was just a question of SDL_SetWindowGrab(). As it stands
now, a grabbed mouse can briefly break out of the window, causing varying
degrees of chaos.
|
|
9727655b
|
2021-04-26T14:22:19
|
|
SDL_test_common: add other window flags: --shown, --hidden, --input-focus, --mouse-focus
|
|
d62ebec2
|
2021-04-26T14:10:39
|
|
SDL_test_common: replace 'resize' by 'resizable'
|
|
1f482174
|
2021-04-25T12:44:35
|
|
x11: Mark backing_store as NotUseful when creating windows.
This can give some performance boost, and save some resources, as there's no
reason to keep a copy of an SDL window's contents on the server: most SDL
apps are redrawing completely every frame, and the API allows for expose
events to tell an app a redraw is needed anyhow.
(And compositors are free to ignore this setting if it makes sense to do so,
according to the Xlib docs.)
Reference Issue #3776.
|
|
9c063468
|
2021-04-24T19:47:10
|
|
x11: call XSync before XSetInputFocus during SDL_ShowWindow.
This only happens when using a non-NET_WM window manager, as we might try to
set the focus before the window is mapped.
Fixes #3949.
|
|
89a2980a
|
2021-04-23T01:56:10
|
|
CMake: fixes to pthreads detection.
changes unnecessary check_c_source_runs to check_c_source_compiles,
removes the reduntant cross-compile check, and defines _GNU_SOURCE
for PTHREAD_MUTEX_RECURSIVE checks just like the autotools version.
Fixes: https://github.com/libsdl-org/SDL/issues/4262
Closes: https://github.com/libsdl-org/SDL/pull/4282
|
|
ca969eb2
|
2021-04-24T10:29:52
|
|
Remove gles2 vita render
|
|
058bbe02
|
2021-04-24T10:17:03
|
|
Set volume on device open
|
|
e3ea5b64
|
2021-04-24T10:16:21
|
|
Migrate to lightweight mutexes
|
|
f1ad942a
|
2021-04-22T17:24:05
|
|
SDL_windows_main: use HeapAlloc/HeapFree for command line arguments
If a developer uses SDL_SetMemoryFunctions, we can't rely on SDL_free()
working when SDL_main() returns.
Signed-off-by: Steven Noonan <steven@valvesoftware.com>
Signed-off-by: Sam Lantinga <slouken@libsdl.org>
|
|
17d8479d
|
2021-04-22T15:44:01
|
|
hidapi/libusb: maintain in-memory cache of vendor/product strings
The get_usb_string call is rather expensive on some USB devices, so we
cache the vendor/product strings for future lookups (e.g. when
hid_enumerate is invoked again later).
This way, we only need to ask libusb for strings for devices we haven't
seen since before we started.
Signed-off-by: Steven Noonan <steven@valvesoftware.com>
Signed-off-by: Sam Lantinga <slouken@libsdl.org>
|