From a0a0119b48dece10f621a20fd84eef14ff200720 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Mon, 15 Feb 2021 22:43:36 +0100 Subject: [PATCH] Account for true dpi We have to account for the physical rather than logical dpi. See #12132. --- src/frontends/qt/GuiApplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt/GuiApplication.cpp b/src/frontends/qt/GuiApplication.cpp index dc996a55dd..6395f8e98a 100644 --- a/src/frontends/qt/GuiApplication.cpp +++ b/src/frontends/qt/GuiApplication.cpp @@ -1112,7 +1112,7 @@ GuiApplication::GuiApplication(int & argc, char ** argv) // needs to be done before reading lyxrc QWidget w; - lyxrc.dpi = (w.logicalDpiX() + w.logicalDpiY()) / 2; + lyxrc.dpi = (w.physicalDpiX() + w.physicalDpiY()) / 2; guiApp = this;