Add scaling to virtual backend

Reviewers: #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D3497
This commit is contained in:
David Edmundson 2016-11-07 23:46:50 +00:00
parent dec76a77e2
commit 584dc1d2d4

View file

@ -59,7 +59,7 @@ void VirtualQPainterBackend::createOutputs()
{
m_backBuffers.clear();
for (int i = 0; i < screens()->count(); ++i) {
QImage buffer(screens()->size(i), QImage::Format_RGB32);
QImage buffer(screens()->size(i) * screens()->scale(i), QImage::Format_RGB32);
buffer.fill(Qt::black);
m_backBuffers << buffer;
}