Skip to content

Update Main #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 134 commits into from
Apr 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
b49e095
regenerated configure
sezero Mar 14, 2021
5f7eb88
Load libOpenGL.so.1 if libGL.so.1 is not found
Cacodemon345 Mar 14, 2021
9996cec
Set ALT_OGL to libOpenGL.so.0 instead of libOpenGL.so.1
lanodan Mar 15, 2021
3853531
Fix CMake script on Linux
Cacodemon345 Mar 15, 2021
8ba735c
Include arm_neon.h in mingw targeting ARM Windows.
madewokherd Mar 10, 2021
b98b5ad
wasapi: Don't use the system's resampler.
icculus Mar 15, 2021
d84df04
Merge commit '51345623e888d7bc4131cd8f015c339f757ea68a' into main
slouken Mar 15, 2021
5b34a26
Merge commit '3d22731d94d6259255ef3fd5006c8c6c80e377b4' into main
slouken Mar 15, 2021
b53f06c
Merge commit '72bcf546f90423f05eda0fa08510e340683ff6f4' into main
slouken Mar 15, 2021
6158946
Merge commit '9e23c65237b480c74a0a2537b9927f6e52ca22aa' into main
slouken Mar 15, 2021
713a047
Merge commit 'cd3809c03e6d41a73cdb7c4a2e84c56e3d45cd7a' into main
slouken Mar 15, 2021
7ca94f5
Merge commit '4fbd60b81714f8f93946520147cb0c1f05faee64' into main
slouken Mar 15, 2021
082394c
Merge commit 'a5f3ea14487f1a36b1d421d02e86f25704f8bdc8' into main
slouken Mar 15, 2021
2bd0a71
Merge commit 'dacf6cfbaa8c66ea6150f95aadad2954f116836c' into main
slouken Mar 15, 2021
3313c67
Merge commit '34de3b57a101f8d885041add5e21311a153bb1bf' into main
slouken Mar 15, 2021
4a39d89
Merge commit '1957ffd21ab5a3be6f347def510fcb8f985d3b8b' into main
slouken Mar 15, 2021
00f93e4
Merge commit 'b49e0953b14be38cdeada86df84a59c92e38aeff' into main
slouken Mar 15, 2021
30bef5d
Merge commit '5f7eb88ae0990f89ec3a4bf697ec03aafee1a9a8' into main
slouken Mar 15, 2021
7acafda
Merge commit '9996cecc726a8d8900fd817d58f9505b3490d1bc' into main
slouken Mar 15, 2021
aa00fe4
Merge commit '3853531f6d11d1824b6a0ce0212c06e79483d22d' into main
slouken Mar 15, 2021
b1b93df
Merge commit '8ba735c208388159477bf0ccb06a8573a273fb02' into main
slouken Mar 15, 2021
5f596d1
Merge commit 'b98b5adcaea159fc6a9753f808875acf7d3ee945' into main
slouken Mar 15, 2021
e213f37
[KMSDRM] Enable full OpenGL detection (MESA/libglvnd) on both the mak…
vanfanel Mar 15, 2021
108bb5a
[KMSDRM] Modify SDL_CreateRenderer() to create an opengles2 renderer …
vanfanel Mar 15, 2021
7a2a1a8
documentation: initial script to merge header comments and the wiki.
icculus Mar 16, 2021
e14fb54
[KMSDRM] Undo SDL_CreateRenderer() modifications aimed at create open…
vanfanel Mar 16, 2021
96cc498
[Build system] Report differentiated glx and glvnd OpenGL implementat…
vanfanel Mar 16, 2021
07fc1bb
Fix invalid UTF-8 handling of extra bytes
ankith26 Mar 15, 2021
559be8a
fix invalid out of bounds UTF8 handling
ankith26 Mar 15, 2021
e7e519a
dsp: Refuse to initialize if there aren't any Open Sound System devices.
icculus Mar 17, 2021
db2ad6f
git-pre-push-hook: remove ".git" from URL.
icculus Mar 17, 2021
7d1b9c9
[KMSDRM] Remove unneeded function calls and improve comments for futu…
vanfanel Mar 17, 2021
e6b8700
Fix tests configuration and building when only GLVND full OpenGL impl…
vanfanel Mar 17, 2021
e5821bf
regenerated configure.
sezero Mar 17, 2021
281a7bd
[KMSDRM] Make the gbm_init flag a viddata member to avoid GBM re-init…
vanfanel Mar 18, 2021
c35e718
[KMSDRM] All non-vulkan windows have to be marked as OPENGL, not only…
vanfanel Mar 18, 2021
82ff604
[KMSDRM] Unload GL/EGL libs and destroy GBM only when we are destroyi…
vanfanel Mar 18, 2021
8638674
[KMSDRM] Correct comment typo.
vanfanel Mar 18, 2021
4acd1dc
[KMSDRM] Improve the way to test if last window is being destroyed.
vanfanel Mar 18, 2021
cf7eef3
[KMSDRM] Better error handling: no more segfaults on window creation …
vanfanel Mar 19, 2021
1899844
Fix GitHub display of README-android.md
Cacodemon345 Mar 20, 2021
599edaa
Merge pull request #4212 from Cacodemon345/patch-11
1bsyl Mar 20, 2021
3c78c21
Update and rename README.txt to README.md
icculus Mar 20, 2021
3f40396
First shot at merging the wiki documentation into the headers.
icculus Mar 21, 2021
100166d
[KMSDRM] Improve cursor management.
vanfanel Mar 22, 2021
c12f46b
[KMSDRM] Fix segmentation fault
pcercuei Mar 22, 2021
0727acd
Merge commit 'e213f37a450ca6b0746aa3acd2e5e76635e13468' into main
slouken Mar 23, 2021
2b65588
Merge commit '108bb5aabec27f41f977bdf7a4d2ed3f3a3962eb' into main
slouken Mar 23, 2021
4ef1527
Merge commit '7a2a1a85e9738f127d9f6cd600aa6e1c4459bf2e' into main
slouken Mar 23, 2021
f5253b7
Merge commit 'e14fb54e3f409aaf1e10b94f681677c59b1b7e0d' into main
slouken Mar 23, 2021
7ed2009
Merge commit '96cc49857dcda68910b8ae068de41983da625de2' into main
slouken Mar 23, 2021
9ffd477
Merge commit '07fc1bb883f4c3d9b603d3a3be8c0f2dfa88c285' into main
slouken Mar 23, 2021
4c412d2
Merge commit '559be8aab4a0e666fa6fc9104570c9c9d3c54f12' into main
slouken Mar 23, 2021
e944e40
Merge commit 'e7e519a466167b7a3ef9aa9b28535e436139936a' into main
slouken Mar 23, 2021
49eb7c6
Merge commit 'db2ad6fa73adec1ffa364d21d130b69533b30ade' into main
slouken Mar 23, 2021
e62a251
Merge commit '7d1b9c9f15eb3a9f2f253e5b88e091192a894bcf' into main
slouken Mar 23, 2021
f83ce7c
Merge commit 'e6b87005c1da22a0d354619eebca53c6e2639cdd' into main
slouken Mar 23, 2021
4fa42ca
Merge commit 'e5821bf27668a5e54c699743c2b97aa55e7bdd93' into main
slouken Mar 23, 2021
d27c6c1
Merge commit '281a7bdbb32a2ba124f8a6f6f9555135fd529599' into main
slouken Mar 23, 2021
4b1dfb1
Merge commit 'c35e71892e6aa7dc2ce697b9ac44e541b3f4caef' into main
slouken Mar 23, 2021
3ee89ac
Merge commit '82ff6045fa0aa7ff2f861f20512e30688c7b51c3' into main
slouken Mar 23, 2021
f68ba3c
Merge commit '8638674a87c5ea92a87240f8f562ed1c437d1e0c' into main
slouken Mar 23, 2021
4b0b39a
Merge commit '4acd1dcad41d154093ca14eb0adf35f4f99bd06a' into main
slouken Mar 23, 2021
de83222
Merge commit 'cf7eef37b045bb3f841e26879fdc6d865c8aaf9a' into main
slouken Mar 23, 2021
b0a047e
Merge commit '1899844952756e932ee29e887501a9b9e39066a6' into main
slouken Mar 23, 2021
8a6810e
Merge commit '599edaaf935aab69a13b5643566adc652a27e268' into main
slouken Mar 23, 2021
9332006
Merge commit '3c78c211d57de4e9d953bf71d49d2ee313bbff34' into main
slouken Mar 23, 2021
f82aa7f
Merge commit '3f40396d33df64326756648c3b8e1e6c922efe5a' into main
slouken Mar 23, 2021
258b7bc
Merge commit '100166d7d7b9ed2e486841498bbc585975630e02' into main
slouken Mar 23, 2021
38b61a3
Merge commit 'c12f46b100d22a0e06a64c5b6d1baa3f446d34e6' into main
slouken Mar 23, 2021
1133ea0
Fixed crash on macOS when AirPods are connected
slouken Mar 23, 2021
0bdf4f9
Disable system gestures on MFi controllers while they're open, so we …
slouken Mar 23, 2021
b55b11a
src/thread/pthread/SDL_systhread.c: drop include of SDL_platform.h
ffontaine Mar 23, 2021
7c08b04
headers: a few minor documentation corrections.
icculus Mar 23, 2021
5ac6bd5
[KMSDRM] Ask for videomode on the correct display when creating a win…
vanfanel Mar 24, 2021
231b849
wikiheaders.pl: Properly handle and wordwrap bullet lists.
icculus Mar 24, 2021
c215292
wikiheaders.pl: Mark some sections as wiki-only so we don't lose them.
icculus Mar 24, 2021
c486959
headers: Fix up bullet lists, now that wikiheaders.pl can handle them.
icculus Mar 24, 2021
5753fd7
wikiheaders.pl: Whitespace fixes.
icculus Mar 24, 2021
45d128d
wikiheaders: Fixed double-wikify call.
icculus Mar 25, 2021
f554454
wikiheaders: when merging into headers, wordwrap in Markdown style.
icculus Mar 25, 2021
ab7944f
wikiheaders: fixed regex for converting markdown bold+italic to media…
icculus Mar 25, 2021
5262b52
SDL_kmsdrmvideo.c: define EGL_PLATFORM_GBM_MESA if it's missing.
sezero Mar 25, 2021
27b74d3
Implement Wayland_ShowMessageBox using Zenity
flibitijibibo Mar 26, 2021
3377861
Added support for the Amazon Game Controller to the HIDAPI driver
slouken Mar 26, 2021
8b87b43
Don't try to map the touchpad button, since we don't have any art for…
slouken Mar 26, 2021
ef36355
Added mapping for the Amazon Luna controller on macOS
slouken Mar 26, 2021
07af9ba
Use the correct name for the Amazon Luna Gamepad
slouken Mar 26, 2021
4a07c73
Added mapping for the Amazon Luna controller on Linux
slouken Mar 26, 2021
40b0509
Fixed header documentation errors
slouken Mar 26, 2021
6d9c4f6
Added support for the wired Amazon Luna gamepad on Android
slouken Mar 26, 2021
54719a9
wayland: Assign output_len in ShowMessageBox
flibitijibibo Mar 26, 2021
07ba13b
wayland: Pass --no-wrap to Zenity.
flibitijibibo Mar 26, 2021
c13c3c3
[KMSDRM] For Vulkan, use a mode with the same exact size as the windo…
vanfanel Mar 27, 2021
1ec60a3
[KMSDRM] Remove unnecessary space.
vanfanel Mar 27, 2021
9de7eaf
[KMSDRM] Change error message.
vanfanel Mar 28, 2021
5bb2bbd
audio: pipewire: Don't use uninitialized variables in callbacks
Kontrabant Mar 28, 2021
8deb406
audio: pipewire: Avoid redundant locking
Kontrabant Mar 28, 2021
5f9effa
audio: pipewire: Block while waiting on stream state info
Kontrabant Mar 28, 2021
1cd97e2
testmessage: Create a renderer for window display on Wayland
sulix Mar 29, 2021
5ceb674
linux: Fix ibus support on Wayland/XWayland
flibitijibibo Mar 28, 2021
fb283a7
Squashed commit of the following:
jixingcn Mar 24, 2021
9b7babf
wasapi: Remove assert added by 67e8522d
flibitijibibo Mar 27, 2021
9d294f1
audio: Allow AudioStreamGet to return 0 in RunAudio.
flibitijibibo Mar 27, 2021
3f25704
test: portable 64bit address format specifier
christianrauch Mar 26, 2021
b972258
test: remove unused variables and typedefs
christianrauch Mar 26, 2021
570768f
test: fix shadowing variables
christianrauch Mar 26, 2021
733b327
[KMSDRM] Minor Vulkan code adjustments regarding pointers and display…
vanfanel Mar 29, 2021
eeee730
wayland: Implement IME support.
flibitijibibo Mar 29, 2021
033c0ab
Use dispatch_async for -[NSOpenGLContext update]. Fixes #3680
Learath2 Mar 27, 2021
942aa7b
[KMSDRM] No need to use an SDL_VideoDisplay pointer to access display…
vanfanel Mar 30, 2021
fa81883
[KMSDRM] Fake refresh rate precision on Vulkan display mode creation.
vanfanel Mar 30, 2021
2542977
Revert "Update wiki.libsdl.org urls to libsdl-org/SDL/wiki (#4069)"
icculus Apr 1, 2021
da66755
Fixed up legacy MoinMoin URLs at wiki.libsdl.org
icculus Apr 1, 2021
2689e84
Delete gh-pages.yml
icculus Apr 1, 2021
b42bf2a
configure: Don't use "-Wl,--no-undefined" in "sdl2-config --static-libs"
icculus Apr 2, 2021
57c2a45
render: draw when hidden, except on iOS and Android.
icculus Apr 2, 2021
dbdbae4
linux: (de)initialize d-bus at init and quit.
icculus Apr 2, 2021
7d02248
tls: wrap reference to a mutex into an #if !SDL_THREADS_DISABLED test.
icculus Apr 2, 2021
4abe344
SDL_EGL_ChooseConfig: cleanups and minor optimizations.
icculus Apr 3, 2021
95e5f05
audio: make SDL_OpenAudioDevice declaration look less squashed.
icculus Apr 3, 2021
354cabd
egl: favor truecolor configurations.
icculus Apr 3, 2021
a81fe27
configure/cmake: Hook up Emscripten threads (disabled by default).
icculus Apr 4, 2021
e006872
hints: SDL_HINT_TIMER_RESOLUTION applies to all versions of Windows.
icculus Apr 4, 2021
4914199
ibus: make sure we don't pass a NULL path string over D-Bus.
icculus Apr 4, 2021
573c5a5
regenerated configure.
sezero Apr 4, 2021
413a230
NULL passed to strcmp in Wayland_ShowMessageBox
meyraud705 Apr 4, 2021
9634070
debian: Update README file in doc package
rzr Apr 3, 2021
3dbc4cf
Fix compilation error for Windows SDK 8.1+
LB-- Mar 30, 2021
8fa2ce5
WinRT: Rename Interface ID symbols
okuoku Apr 3, 2021
7b8c750
CMake: Enable WASAPI on WinRT
okuoku Apr 3, 2021
ebc1109
Removed mkdocs.yml
icculus Apr 4, 2021
17ceddf
debian: Align debian deps
rzr Apr 3, 2021
78095e3
git: Ignore debian generated files
rzr Apr 3, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .github/workflows/gh-pages.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,12 @@ test/testvulkan
test/testwm2
test/testyuv
test/torturethread

builddir/
debian/*.debhelper.log
debian/*.substvars
debian/*.tar.gz
debian/.debhelper/
debian/files
debian/libsdl*/
debian/tmp/
24 changes: 20 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,14 @@ else()
set(UNIX_OR_MAC_SYS OFF)
endif()

if (UNIX_OR_MAC_SYS AND NOT EMSCRIPTEN) # JavaScript does not yet have threading support, so disable pthreads when building for Emscripten.
# Emscripten pthreads work, but you need to have a non-pthread fallback build
# for systems without support. It's not currently enough to not use
# pthread functions in a pthread-build; it won't start up on unsupported
# browsers. As such, you have to explicitly enable it on Emscripten builds
# for the time being. This default with change to ON once this becomes
# commonly supported in browsers or the Emscripten teams makes a single
# binary work everywhere.
if (UNIX_OR_MAC_SYS AND NOT EMSCRIPTEN)
set(SDL_PTHREADS_ENABLED_BY_DEFAULT ON)
else()
set(SDL_PTHREADS_ENABLED_BY_DEFAULT OFF)
Expand Down Expand Up @@ -289,11 +296,14 @@ set(OPT_DEF_ASM TRUE)
if(EMSCRIPTEN)
# Set up default values for the currently supported set of subsystems:
# Emscripten/Javascript does not have assembly support, a dynamic library
# loading architecture, low-level CPU inspection or multithreading.
# loading architecture, or low-level CPU inspection.

# SDL_THREADS_ENABLED_BY_DEFAULT now defaults to ON, but pthread support might be disabled by default.
# !!! FIXME: most of these subsystems should default to ON if there are dummy implementations to be used.

set(OPT_DEF_ASM FALSE)
set(SDL_SHARED_ENABLED_BY_DEFAULT OFF)
set(SDL_ATOMIC_ENABLED_BY_DEFAULT OFF)
set(SDL_THREADS_ENABLED_BY_DEFAULT OFF)
set(SDL_LOADSO_ENABLED_BY_DEFAULT OFF)
set(SDL_CPUINFO_ENABLED_BY_DEFAULT OFF)
set(SDL_DLOPEN_ENABLED_BY_DEFAULT OFF)
Expand Down Expand Up @@ -1154,6 +1164,8 @@ elseif(EMSCRIPTEN)
endif()
endif()

CheckPTHREAD()

elseif(UNIX AND NOT APPLE AND NOT ANDROID AND NOT RISCOS)
if(SDL_AUDIO)
if(SYSV5 OR SOLARIS OR HPUX)
Expand Down Expand Up @@ -1197,6 +1209,7 @@ elseif(UNIX AND NOT APPLE AND NOT ANDROID AND NOT RISCOS)
# Need to check EGL before checking KMSDRM because KMSDRM depends on it.
CheckEGLKMSDRM()
CheckKMSDRM()
CheckOpenGLKMSDRM()
endif()

if(UNIX)
Expand Down Expand Up @@ -1492,9 +1505,12 @@ elseif(WINDOWS)
set(SOURCE_FILES ${SOURCE_FILES} ${DSOUND_AUDIO_SOURCES})
endif()

if(WASAPI AND HAVE_AUDIOCLIENT_H AND HAVE_MMDEVICEAPI_H AND NOT WINDOWS_STORE)
if(WASAPI AND HAVE_AUDIOCLIENT_H AND HAVE_MMDEVICEAPI_H)
set(SDL_AUDIO_DRIVER_WASAPI 1)
file(GLOB WASAPI_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/wasapi/*.c)
if(WINDOWS_STORE)
list(APPEND WASAPI_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/wasapi/SDL_wasapi_winrt.cpp)
endif()
set(SOURCE_FILES ${SOURCE_FILES} ${WASAPI_AUDIO_SOURCES})
endif()
endif()
Expand Down
4 changes: 2 additions & 2 deletions INSTALL.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ To compile and install SDL:
* Read ./docs/README-visualc.md

Windows with gcc, either native or cross-compiling:
* Read the FAQ at https://github.com/libsdl-org/SDL/wiki/FAQWindows
* Read the FAQ at https://wiki.libsdl.org/FAQWindows
* Run './configure; make; make install'

Mac OS X with Xcode:
Expand All @@ -27,7 +27,7 @@ To compile and install SDL:
* Read docs/README-cmake.md

2. Look at the example programs in ./test, and check out the online
documentation at https://github.com/libsdl-org/SDL/wiki/
documentation at https://wiki.libsdl.org/

3. Join the SDL developer mailing list by sending E-mail to
sdl-request@libsdl.org
Expand Down
10 changes: 3 additions & 7 deletions README.txt → README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@

Simple DirectMedia Layer
# Simple DirectMedia Layer (SDL) Version 2.0

(SDL)

Version 2.0

---
https://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed
Expand All @@ -18,4 +13,5 @@ More extensive documentation is available in the docs directory, starting
with README.md

Enjoy!
Sam Lantinga (slouken@libsdl.org)

Sam Lantinga (slouken@libsdl.org)
2 changes: 1 addition & 1 deletion TODO.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Future work roadmap:
* https://github.com/libsdl-org/SDL/wiki/Roadmap
* http://wiki.libsdl.org/Roadmap

* Check 1.2 revisions:
3554 - Need to resolve semantics for locking keys on different platforms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ private boolean isXbox360Controller(UsbDevice usbDevice, UsbInterface usbInterfa
0x15e4, // Numark
0x162e, // Joytech
0x1689, // Razer Onza
0x1949, // Lab126, Inc.
0x1bad, // Harmonix
0x24c6, // PowerA
};
Expand Down
1 change: 1 addition & 0 deletions build-scripts/git-pre-push-hook.pl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#print("remote: $remote\n");
#print("url: $url\n");

$url =~ s/\.git$//; # change myorg/myproject.git to myorg/myproject
$url =~ s#^git\@github\.com\:#https://github.com/#i;
my $commiturl = $url =~ /\Ahttps?:\/\/github.com\// ? "$url/commit/" : '';

Expand Down
Loading