Commit b442c1e8 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

qpa: Port from Screens

parent 8284740c
Pipeline #204598 failed with stage
in 12 minutes and 43 seconds
......@@ -18,9 +18,9 @@
#include "main.h"
#include "output.h"
#include "platform.h"
#include "screens.h"
#include <QCoreApplication>
#include <QTimer>
#include <QtConcurrentRun>
#include <qpa/qplatformnativeinterface.h>
......
......@@ -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())
{
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment