Go to file
Eric Wasylishen 67c91353e0 Handle DPI scaling in SDL_GetWindowSurface
Fixes DPI awareness of testdrawchessboard (previously, the surface was
being created in points instead of pixels, resulting in the demo app
only drawing in a corner of the screen on High-DPI displays)

*_CreateWindowFramebuffer()/*_UpdateWindowFramebuffer(): are updated
to use SDL_GetWindowSizeInPixels instead of SDL_GetWindowSize() or
window->w/window->h.

Most of the _CreateWindowFramebuffer backends are untested except
for Windows.

Fixes #7047
2023-01-15 12:57:42 -08:00
.github cmake: fix sdl3.pc for Nintendo 3DS + add to test matrix 2023-01-15 17:46:36 +01:00
VisualC include: SDL_dynapi.h depends on platform defines 2023-01-08 21:37:54 +01:00
VisualC-GDK Updated copyright for 2023 2023-01-09 09:41:41 -08:00
VisualC-WinRT include: SDL_dynapi.h depends on platform defines 2023-01-08 21:37:54 +01:00
Xcode Rename the xcFramework target to SDL.xcframework so it's clear when being embedded in other projects 2023-01-12 13:23:49 -08:00
android-project SDLAudioManager.java: Fixed the support for Android older than API 23 2023-01-10 20:15:59 -08:00
build-scripts SDL_migration.cocci: simplify multiplicaction / division by 1 2023-01-12 20:52:37 +01:00
cmake cmake: make sdl3.pc relocatable 2023-01-15 12:37:51 -08:00
docs Moved SDL_intrin.h back into the public headers for application use 2023-01-10 15:50:35 -08:00
include Handle DPI scaling in SDL_GetWindowSurface 2023-01-15 12:57:42 -08:00
mingw/pkg-support/cmake build: don't add SDL3 subfolder to include path for external projects 2022-11-27 14:33:13 -08:00
src Handle DPI scaling in SDL_GetWindowSurface 2023-01-15 12:57:42 -08:00
test Replaced SDL_SIMDAlloc(), SDL_SIMDRealloc(), and SDL_SIMDFree() with SDL_aligned_alloc() and SDL_aligned_free() 2023-01-09 18:01:59 -08:00
wayland-protocols wayland: Add high-resolution event timestamp support 2022-12-04 16:56:26 -08:00
.clang-format Commented out syntax that causes Visual Studio 2019 to complain on every edit 2022-12-02 00:43:01 -08:00
.editorconfig Ensure training new line in cocci files 2023-01-10 16:43:15 +01:00
.gitignore Removed QtCreator entries from .gitignore 2023-01-04 11:18:18 -08:00
.wikiheaders-options sdlwiki: SDL_version.h moved to include/SDL3 2022-12-19 09:19:45 -08:00
Android.mk Added -Wdocumentation to CMake clang build 2023-01-03 15:58:48 -08:00
BUGS.txt Cleaned up a few more Bugzilla mentions. 2021-02-12 14:46:49 -05:00
CMakeLists.txt cmake: make sdl3.pc relocatable 2023-01-15 12:37:51 -08:00
CREDITS.txt Use Apple's nomenclature for macOS and iOS 2022-11-25 16:00:06 -08:00
INSTALL.txt Use Apple's nomenclature for macOS and iOS 2022-11-25 16:00:06 -08:00
LICENSE.txt Updated copyright for 2023 2023-01-09 09:41:41 -08:00
README-SDL.txt More HTTPS changes in the documentation. 2017-02-16 16:52:03 -05:00
README.md First pass at changing SDL 2.0 to SDL 3.0 2022-11-21 20:28:58 -08:00
TODO.txt Fixed up legacy MoinMoin URLs at wiki.libsdl.org 2021-04-01 12:20:33 -04:00
WhatsNew.txt Moved SDL_intrin.h back into the public headers for application use 2023-01-10 15:50:35 -08:00

README.md

Simple DirectMedia Layer (SDL) Version 3.0

https://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.

More extensive documentation is available in the docs directory, starting with README.md

Enjoy!

Sam Lantinga (slouken@libsdl.org)