aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/android/graphics.cpp')
-rw-r--r--backends/platform/android/graphics.cpp4
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() {