qpa: Port from Screens

This commit is contained in:
Vlad Zahorodnii 2022-07-13 14:48:44 +03:00
parent 8284740cdf
commit b442c1e81b
2 changed files with 2 additions and 3 deletions

View file

@ -18,9 +18,9 @@
#include "main.h" #include "main.h"
#include "output.h" #include "output.h"
#include "platform.h" #include "platform.h"
#include "screens.h"
#include <QCoreApplication> #include <QCoreApplication>
#include <QTimer>
#include <QtConcurrentRun> #include <QtConcurrentRun>
#include <qpa/qplatformnativeinterface.h> #include <qpa/qplatformnativeinterface.h>

View file

@ -10,7 +10,6 @@
#include "window.h" #include "window.h"
#include "eglhelpers.h" #include "eglhelpers.h"
#include "platform.h" #include "platform.h"
#include "screens.h"
#include "internalwindow.h" #include "internalwindow.h"
@ -29,7 +28,7 @@ Window::Window(QWindow *window)
: QPlatformWindow(window) : QPlatformWindow(window)
, m_eglDisplay(kwinApp()->platform()->sceneEglDisplay()) , m_eglDisplay(kwinApp()->platform()->sceneEglDisplay())
, m_windowId(++s_windowId) , m_windowId(++s_windowId)
, m_scale(std::max(qreal(1), screens()->maxScale())) , m_scale(kwinApp()->devicePixelRatio())
{ {
} }