diff options
author | Cameron Cawley | 2019-11-01 11:39:46 +0000 |
---|---|---|
committer | Antoniou Athanasios | 2019-11-01 13:39:46 +0200 |
commit | 177d709909808313eee720ce76465cf99f909c5e (patch) | |
tree | 6d11f166342ddea46deb1634b106d010b4ab5181 /backends/platform/android | |
parent | 5d0206b9c297837fddb038601bdfb42b0fcb8016 (diff) | |
download | scummvm-rg350-177d709909808313eee720ce76465cf99f909c5e.tar.gz scummvm-rg350-177d709909808313eee720ce76465cf99f909c5e.tar.bz2 scummvm-rg350-177d709909808313eee720ce76465cf99f909c5e.zip |
OPENGL: Implement high DPI support on Android (#1895)
* OPENGL: Implement high DPI support on Android
* PSP2: Fix build
Diffstat (limited to 'backends/platform/android')
-rw-r--r-- | backends/platform/android/graphics.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/platform/android/graphics.cpp b/backends/platform/android/graphics.cpp index c22e9bf326..c359fcfba4 100644 --- a/backends/platform/android/graphics.cpp +++ b/backends/platform/android/graphics.cpp @@ -72,7 +72,9 @@ void AndroidGraphicsManager::initSurface() { // mode we setup. notifyContextCreate(Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0), Graphics::PixelFormat(2, 5, 5, 5, 1, 11, 6, 1, 0)); - handleResize(JNI::egl_surface_width, JNI::egl_surface_height); + float dpi[2]; + JNI::getDPI(dpi); + handleResize(JNI::egl_surface_width, JNI::egl_surface_height, dpi[0], dpi[1]); } void AndroidGraphicsManager::deinitSurface() { |