Simple DirectMedia Layer https://libsdl.org
Find a file
bobsayshilol 1173bc2dde emscripten: Fix handling of special HTML targets
With ASAN enabled the existing code triggered null-pointer-dereference
in the strcmp since EMSCRIPTEN_EVENT_TARGET_WINDOW is a "fake" pointer
with the value ((const char*)2). In fixing this it was also noticed
that using the #window/#document/#screen targets as mentioned in the
docs fails since document.querySelector() returns null for them and we
should instead be mapping them to the special HTML targets provided.

(cherry picked from commit 65cd2256c5)
2025-03-08 17:16:57 -08:00
.github ci: farewell, clang32 on msys2 2025-02-22 19:06:27 +01:00
android-project Updated to version 3.2.9 for development 2025-03-04 15:07:23 -08:00
build-scripts Revert "testcamera: added support for Motion JPEG camera frames" 2025-02-20 12:16:26 -08:00
cmake cmake: make sure a SDL3 library is present when not using COMPONENTs 2025-03-01 17:54:45 +01:00
docs Added MinGW Intro readme, touched up CMake and Visual Studio readmes. (#12485) 2025-03-06 16:26:15 -08:00
examples examples: Use SDL_GetAudioStreamQueued, not SDL_GetAudioStreamAvailable. 2025-02-27 11:46:56 -05:00
include Make texture scale mode a part of the 2D renderer draw state 2025-03-05 22:39:31 -08:00
src emscripten: Fix handling of special HTML targets 2025-03-08 17:16:57 -08:00
test Make texture scale mode a part of the 2D renderer draw state 2025-03-05 22:39:31 -08:00
VisualC Cocoa metal layers need their size updated before renderer updates 2025-02-24 15:37:13 -08:00
VisualC-GDK Cocoa metal layers need their size updated before renderer updates 2025-02-24 15:37:13 -08:00
wayland-protocols wayland: Add color manager protocol support 2025-02-17 11:31:12 -05:00
Xcode Updated to version 3.2.9 for development 2025-03-04 15:07:23 -08:00
.clang-format Add 'wl_list_for_each_safe' to the clang-format macro list 2024-03-14 10:22:23 -04:00
.clang-tidy
.editorconfig .editorconfig: Remove excess apostrophe at *.cocci 2024-06-16 09:18:17 -07:00
.gitignore Allow in-tree build 2024-10-30 00:04:17 +01:00
.wikiheaders-options .wikiheaders-options: Removed wikipreamble setting. 2025-01-24 01:53:51 -05:00
Android.mk io: Renamed src/file to src/io 2025-01-16 08:18:40 -05:00
BUGS.txt Added a Discord link to BUGS.txt 2025-01-13 16:42:50 -08:00
CMakeLists.txt Updated to version 3.2.9 for development 2025-03-04 15:07:23 -08:00
CREDITS.md Updated the credits for SDL 3.0 2025-01-13 16:42:50 -08:00
INSTALL.md Add a link to docs/INTRO-mingw.md 2025-03-06 16:26:15 -08:00
LICENSE.txt Updated copyright for 2025 2025-01-01 07:45:52 -08:00
README.md Updating documentation for the 3.2.0 release 2025-01-15 20:38:16 -08:00
WhatsNew.txt Added SDL_HINT_VIDEO_X11_EXTERNAL_WINDOW_INPUT 2025-03-05 09:13:10 -08:00

Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators.

You can find the latest release and additional information at: https://www.libsdl.org/

Installation instructions and a quick introduction is available in INSTALL.md

This library is distributed under the terms of the zlib license, available in LICENSE.txt.

Enjoy!

Sam Lantinga (slouken@libsdl.org)