qpa: Port from Screens
This commit is contained in:
parent
8284740cdf
commit
b442c1e81b
2 changed files with 2 additions and 3 deletions
|
@ -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>
|
||||||
|
|
|
@ -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())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue