debian/libsdl2-dev.install
author Sam Lantinga <slouken@libsdl.org>
Sun, 08 Dec 2019 11:36:40 -0800
changeset 13321 37350f1e7902
parent 11479 74650172be10
permissions -rw-r--r--
Fixed bug 4883 - Add approximation for display DPI on iOS

Aaron Barany

There appears to be no way to directly access the display DPI on iOS, so as an approximation the DPI for the iPhone 1 is used as a base value and is multiplied by the screen's scale. This should at least give a ballpark number for the various screen scales. (based on https://stackoverflow.com/questions/25756087/detecting-iphone-6-6-screen-sizes-in-point-values it appears that both 2x and 3x are used)

I have updated the patch to use a table of current devices and use a computation as a fallback. I have also updated the fallback computation to be more accurate.
     1 usr/bin/sdl2-config
     2 usr/include/SDL2
     3 usr/lib/*/*.a
     4 usr/lib/*/*.la
     5 usr/lib/*/*.so
     6 usr/lib/*/pkgconfig/sdl2.pc
     7 usr/lib/*/cmake/SDL2/sdl2-config.cmake
     8 usr/share/aclocal/sdl2.m4