aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edmundson <[email protected]>2016-11-07 23:46:50 +0000
committerDavid Edmundson <[email protected]>2017-03-29 20:53:22 +0100
commit584dc1d2d4ae356094d63482e8243a40a282188e (patch)
tree812f002e2faca8c16aaaa0c936bb90c6c62c7bc1
parentdec76a77e2fa34f543da72f3dfd6e4267c47d0a5 (diff)
Add scaling to virtual backend
Reviewers: #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D3497
-rw-r--r--plugins/platforms/virtual/scene_qpainter_virtual_backend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/platforms/virtual/scene_qpainter_virtual_backend.cpp b/plugins/platforms/virtual/scene_qpainter_virtual_backend.cpp
index 7d2c4ab..0512d18 100644
--- a/plugins/platforms/virtual/scene_qpainter_virtual_backend.cpp
+++ b/plugins/platforms/virtual/scene_qpainter_virtual_backend.cpp
@@ -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;
}