Simple Directmedia Layer
Go to file
Eric Wasylishen 0d98793693
testwm2: Fix video modes menu hit detection when highdpi or logical size used (#4936)
* SDLTest_CommonDrawWindowInfo: log SDL_RenderGetScale, SDL_RenderGetLogicalSize

* testwm2: fix video modes menu hit detection in High DPI cases

- also when logical size is specified, e.g.
  `--logical 640x480 --resizable --allow-highdpi`

* add function to determine logical coordinates of renderer point when given window point

* change since to the targeted milestone

* fix typo

* rename for consistency

* Change logical coordinate type to float, since we can render with floating point precision.

* add function to convert logical to window coordinates

* testwm2: use new SDL_RenderWindowToLogical

* SDL_render.c: alternate SDL_RenderWindowToLogical/SDL_RenderLogicalToWindow

Co-authored-by: John Blat <johnblat64@protonmail.com>
Co-authored-by: John Blat <47202511+johnblat64@users.noreply.github.com>
2021-11-09 21:03:42 -08:00
.github
acinclude
android-project
android-project-ant
build-scripts
cmake
debian
docs Added documentation that the UIApplicationSupportsIndirectInputEvents key must be set to true 2021-11-09 20:32:16 -08:00
include testwm2: Fix video modes menu hit detection when highdpi or logical size used (#4936) 2021-11-09 21:03:42 -08:00
src testwm2: Fix video modes menu hit detection when highdpi or logical size used (#4936) 2021-11-09 21:03:42 -08:00
test testwm2: Fix video modes menu hit detection when highdpi or logical size used (#4936) 2021-11-09 21:03:42 -08:00
VisualC
VisualC-WinRT
visualtest
wayland-protocols
Xcode
Xcode-iOS Added documentation that the UIApplicationSupportsIndirectInputEvents key must be set to true 2021-11-09 20:32:16 -08:00
.gitignore
Android.mk
autogen.sh
BUGS.txt
cmake_uninstall.cmake.in
CMakeLists.txt
configure
configure.ac
CREDITS.txt
INSTALL.txt
LICENSE.txt
Makefile.in
Makefile.minimal
Makefile.os2
Makefile.pandora
Makefile.psp
Makefile.wiz
README-SDL.txt
README.md
sdl2-config-version.cmake.in
sdl2-config.cmake.in
sdl2-config.in
sdl2.m4
sdl2.pc.in
SDL2.spec.in
SDL2Config.cmake
TODO.txt
WhatsNew.txt Added documentation that the UIApplicationSupportsIndirectInputEvents key must be set to true 2021-11-09 20:32:16 -08:00

Simple DirectMedia Layer (SDL) Version 2.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)