[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kwin/scaling_merged] /: hopefully fix subsurfaces - squash with qpainter rendering
From: David Edmundson <kde () davidedmundson ! co ! uk>
Date: 2016-11-24 20:48:39
Message-ID: E1cA0wh-0000TY-Or () code ! kde ! org
[Download RAW message or body]
Git commit e5160b5ab8bc2401eba93e3262df7153659d9de6 by David Edmundson.
Committed on 23/11/2016 at 17:15.
Pushed by davidedmundson into branch 'scaling_merged'.
hopefully fix subsurfaces - squash with qpainter rendering
M +2 -1 scene_qpainter.cpp
https://commits.kde.org/kwin/e5160b5ab8bc2401eba93e3262df7153659d9de6
diff --git a/scene_qpainter.cpp b/scene_qpainter.cpp
index 096b1e7..161c438 100644
--- a/scene_qpainter.cpp
+++ b/scene_qpainter.cpp
@@ -253,7 +253,8 @@ static void paintSubSurface(QPainter *painter, const QPoint &pos, QPainterWindow
if (!pixmap->subSurface().isNull()) {
p += pixmap->subSurface()->position();
}
- painter->drawImage(p, pixmap->image());
+
+ painter->drawImage(QRect(pos, pixmap->size()), pixmap->image());
const auto &children = pixmap->children();
for (auto it = children.begin(); it != children.end(); ++it) {
auto pixmap = static_cast<QPainterWindowPixmap*>(*it);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic