From b442c1e81bff374c90e689a6cefe3feb8b46b96f Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 13 Jul 2022 14:48:44 +0300 Subject: [PATCH] qpa: Port from Screens --- src/plugins/qpa/integration.cpp | 2 +- src/plugins/qpa/window.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/qpa/integration.cpp b/src/plugins/qpa/integration.cpp index 675fe9d180..bdad95973a 100644 --- a/src/plugins/qpa/integration.cpp +++ b/src/plugins/qpa/integration.cpp @@ -18,9 +18,9 @@ #include "main.h" #include "output.h" #include "platform.h" -#include "screens.h" #include +#include #include #include diff --git a/src/plugins/qpa/window.cpp b/src/plugins/qpa/window.cpp index 3e05c37849..3d0aebd1b7 100644 --- a/src/plugins/qpa/window.cpp +++ b/src/plugins/qpa/window.cpp @@ -10,7 +10,6 @@ #include "window.h" #include "eglhelpers.h" #include "platform.h" -#include "screens.h" #include "internalwindow.h" @@ -29,7 +28,7 @@ Window::Window(QWindow *window) : QPlatformWindow(window) , m_eglDisplay(kwinApp()->platform()->sceneEglDisplay()) , m_windowId(++s_windowId) - , m_scale(std::max(qreal(1), screens()->maxScale())) + , m_scale(kwinApp()->devicePixelRatio()) { }