diff --git a/plugins/qpa/screen.cpp b/plugins/qpa/screen.cpp index cd23dea9d8..4fd6fd2d51 100644 --- a/plugins/qpa/screen.cpp +++ b/plugins/qpa/screen.cpp @@ -62,12 +62,12 @@ QPlatformCursor *Screen::cursor() const QDpi Screen::logicalDpi() const { - static int force_dpi = qEnvironmentVariableIsSet("QT_WAYLAND_FORCE_DPI") ? qEnvironmentVariableIntValue("QT_WAYLAND_FORCE_DPI") : -1; - if (force_dpi > 0) { - return QDpi(force_dpi, force_dpi); + static int forceDpi = qEnvironmentVariableIsSet("QT_WAYLAND_FORCE_DPI") ? qEnvironmentVariableIntValue("QT_WAYLAND_FORCE_DPI") : -1; + if (forceDpi > 0) { + return QDpi(forceDpi, forceDpi); } - return QPlatformScreen::logicalDpi(); + return QDpi(96, 96); } qreal Screen::devicePixelRatio() const