From 9c3bae5a87ecbdbbeeb87cf2b82f6ca52800cadf Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 17 Nov 2018 13:50:50 +0800 Subject: [PATCH] Use actualy screen size instead of frame size for font scaling --- src/font/font_with_face.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/font/font_with_face.cpp b/src/font/font_with_face.cpp index 8ef8c52f8..2af164d36 100644 --- a/src/font/font_with_face.cpp +++ b/src/font/font_with_face.cpp @@ -350,9 +350,9 @@ void FontWithFace::dumpGlyphPage() */ void FontWithFace::setDPI() { - const int screen_width = irr_driver->getFrameSize().Width; - const int screen_height = irr_driver->getFrameSize().Height; - + const int screen_width = irr_driver->getActualScreenSize().Width; + const int screen_height = irr_driver->getActualScreenSize().Height; + if (UserConfigParams::m_hidpi_enabled) { float scale = screen_height / 480.0f;