Anonymous Maarten
3e1021239a
cmake: also add the recently-added include folder to the public interface
2022-06-22 17:04:58 +02:00
Anonymous Maarten
4ad4fe67c7
cmake: install generated SDL_config.h
...
The generated SDL_config.h recently changed location, so update the install.
2022-06-22 17:04:58 +02:00
Francisco Javier Trujillo Mata
2b41f497db
Improve Joystick removing semaphores
2022-06-22 15:08:41 +02:00
Francisco Javier Trujillo Mata
c3a5e4aa7b
Adding GetGamepadMapping to Vita Joystick driver
2022-06-22 02:23:00 +03:00
Ozkan Sezer
7adb08a79a
fixed SDL_BlitMap typedef redefinition errors
2022-06-22 01:37:00 +03:00
Ryan C. Gordon
12b371ee0f
x11: Don't send diplay-add events for displays connected at init time.
...
Reference Issue #4977 .
2022-06-21 14:49:21 -04:00
Frank Praznik
c11bdeeb69
wayland: Round fractional backbuffer sizes halfway away from zero
...
Use SDL_lroundf() to round fractional backbuffer sizes halfway away from zero, as this is the rounding method recommended by the forthcoming Wayland fractional scaling protocol.
2022-06-21 14:01:29 -04:00
Ryan C. Gordon
ff735b3c0f
SDL_Surface: don't implicitly declare struct SDL_BlitMap.
...
It's just an opaque type, but it's more clear to have it typedef'd outside
the containing struct.
Fixes #5828 .
2022-06-20 18:31:39 -04:00
Anonymous Maarten
d460000b45
cmake: use add_definitions for compatibility with cmake 3.0
2022-06-20 19:29:13 +02:00
Pieter-Jan Briers
9914e87faa
Also send DPI change when expected resize.
2022-06-20 06:54:40 -07:00
Pieter-Jan Briers
af733c7a32
Fix DPI-raised SDL_WINDOWEVENT_SIZE_CHANGED with event callback.
...
Move the sending of this event down so stuff like calling SDL_GL_GetDrawableSize() from a callback reports the new size instead of the old one.
2022-06-20 06:54:40 -07:00
Ozkan Sezer
2316e5682e
SDL_windows.h: match WINVER value to _WIN32_WINNT.
2022-06-19 08:33:28 -07:00
Ozkan Sezer
22a29321e9
tweak _WIN32_WINNT value for shellscalingapi.h present but no d3d12
2022-06-19 08:33:28 -07:00
Ozkan Sezer
bdcdbfc757
Enable D3D12 detection when using mingw-w64 with cmake too
...
c.f.: autotools commit 59fb7acbf7
2022-06-19 11:04:24 +03:00
Ryan C. Gordon
48a232969d
wikiheaders: Strip `[[wiki hyperlink]]` from See Also fields.
2022-06-19 00:15:41 -04:00
Sam Lantinga
abe38bca3e
Support SDL_AUDIODRIVER set to "dsound", which was used by SDL 1.2
...
Fixes https://github.com/libsdl-org/SDL/issues/5818
2022-06-18 13:08:58 -07:00
Ozkan Sezer
a8d41b3b45
check for shellscalingapi.h presence instead of WINVER >= 0x0603
2022-06-18 13:00:44 -07:00
Sam Lantinga
5f6d0abebe
SDL_SendEditingText() has int parameters, so use that type for parameter calculation
...
We might want to use ssize_t as @Guldoman suggested, but that's a larger internal API change, and still requires casting of the SDL_utf8strnlen() result.
Fixes https://github.com/libsdl-org/SDL/pull/5821
2022-06-18 12:59:28 -07:00
Mathieu Eyraud
00b95e989b
Fix read of uninitialised variable
...
If the condition (dbus->message_iter_get_arg_type(&sub) == DBUS_TYPE_STRING) is false, subtext is not initialised.
2022-06-18 18:23:50 +03:00
Alex Richardson
d51a8f530e
cmake: freebsd: Fix -Wformat warning during tests build
...
Without using <inttypes.h>, SDL_PRIx64 will expand to llx, but on 64-bit
FreeBSD platforms (u)int64_t is `(usigned) long`:
SDL_test_memory.c:261:77: error: format specifies type 'unsigned long long' but the argument has type 'Uint64' (aka 'unsigned long') [-Werror,-Wformat]
This commit updates config_minimal.h to also assume presence of inttypes.h
for everything except old MSVC.
2022-06-18 07:37:57 -07:00
Sam Lantinga
12f14bdbeb
Fixed digit count in sscanf, e.g. "%1x"
2022-06-18 07:02:38 -07:00
Sam Lantinga
9065897514
Added test for digit count in sscanf, e.g. "%1x"
2022-06-18 06:53:05 -07:00
Sam Lantinga
28ecdc6bc7
No need to cast from char* to const char*
2022-06-18 06:52:46 -07:00
Sam Lantinga
53e307050b
List the available tests if the filter didn't match
2022-06-18 06:52:16 -07:00
Anonymous Maarten
e7ad511b4b
cmake: fix location of include dir for SDL2 VC sdk
2022-06-18 13:30:54 +02:00
Sam Lantinga
eb7e29a8b2
Fixed crash when the joystick product name isn't available
2022-06-17 17:43:14 -07:00
Ryan C. Gordon
83b766174c
build-scripts/wikiheaders.pl: ignore "Category" wiki pages.
2022-06-17 17:35:52 -04:00
Ryan C. Gordon
20c622f090
build-scripts/wikiheaders.pl: Allow a wiki preamble.
...
This is so we can have everything in SDL_net (etc) start with a
"This is not part of the core SDL API" message.
2022-06-17 14:40:35 -04:00
Sam Lantinga
adc6875870
Added SDL_copyp to avoid size mismatch when copying values (thanks @1bsyl!)
...
Closes https://github.com/libsdl-org/SDL/pull/5811
2022-06-17 10:22:28 -07:00
Sam Lantinga
b0e827fb65
Enable improved rumble emulation on DualSense(tm) Wireless Controllers with firmware version 2.24 and newer
2022-06-17 07:55:53 -07:00
Anonymous Maarten
b19099d557
cmake: use find_package(SampleRate) to find samplerate + allow targets
2022-06-16 16:47:19 -07:00
Sam Lantinga
59fb7acbf7
Enable D3D12 detection when using mingw-64
2022-06-16 15:46:53 -07:00
Sam Lantinga
1eb247fa2e
Fixed building D3D12 renderer with latest mingw-64
2022-06-16 15:44:18 -07:00
Sam Lantinga
b004133f08
Updated to version 2.23.1 for pre-release checkpoint
2022-06-16 12:50:19 -07:00
Wohlstand
68beedde92
SDLActivity.java: Compatibility fix for debugSource
...
I did these fixes a while ago while debuggin my application, however, forgot to send them back.
2022-06-16 12:45:15 -07:00
Sam Lantinga
5c1b7f6ea7
Added instructions for updating Makefile.w32 for release
2022-06-16 12:42:45 -07:00
Sam Lantinga
5d5488ca71
Fixed test/versioning.sh on macOS
2022-06-16 12:41:31 -07:00
Sam Lantinga
269fc1bd79
Added more details to WhatsNew.txt
2022-06-16 12:34:35 -07:00
Sam Lantinga
a5949d7b03
Fixed crash on Windows
...
These functions really are WINAPI
2022-06-15 23:00:28 -07:00
Sam Lantinga
16f55fbdb4
Separate the controller protocol from the controller style
...
This allows us to handle controllers that use the Xbox protocol but look like Nintendo Switch or Playstation controllers, like the Qanba Dragon Arcade Stick in PC mode
2022-06-15 20:46:01 -07:00
Ryan C. Gordon
94f6080895
wikiheaders.pl: changes to make this usable with external projects.
2022-06-15 23:26:24 -04:00
Sam Lantinga
017e237005
Removed the Qanba Obsidian Arcade Joystick from the unknown controller list
2022-06-15 17:32:46 -07:00
Sam Lantinga
a9cf313eef
Added the Qanba Obsidian and Dragon Arcade Sticks to the arcade stick list
2022-06-15 17:28:29 -07:00
Sam Lantinga
bfe81a0c05
Added the name of the Qanba Obsidian Arcade Joystick in PC mode
2022-06-15 17:28:20 -07:00
Sam Lantinga
a6a2cdbd7c
Added the name of the Qanba Dragon Arcade Joystick in PC mode
2022-06-15 17:28:18 -07:00
Francisco Javier Trujillo Mata
fc78d0ff39
Fix Compilation CI
2022-06-16 02:04:32 +03:00
Francisco Javier Trujillo Mata
6b03c1adf6
Add filesystem driver
2022-06-15 15:15:26 -07:00
Francisco Javier Trujillo Mata
52f00833b0
Add Thread drivers
2022-06-15 15:15:26 -07:00
Francisco Javier Trujillo Mata
217d3a6dab
Add systimer support
2022-06-15 15:15:26 -07:00
Francisco Javier Trujillo Mata
7343ece806
Define available PS2 RAM
2022-06-15 15:15:26 -07:00