summaryrefslogtreecommitdiffstats
path: root/demos/embedded
diff options
context:
space:
mode:
Diffstat (limited to 'demos/embedded')
-rw-r--r--demos/embedded/raycasting/raycasting.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/embedded/raycasting/raycasting.cpp b/demos/embedded/raycasting/raycasting.cpp
index ba91281..c3b21b6 100644
--- a/demos/embedded/raycasting/raycasting.cpp
+++ b/demos/embedded/raycasting/raycasting.cpp
@@ -285,6 +285,8 @@ protected:
QPainter p(this);
p.setCompositionMode(QPainter::CompositionMode_Source);
+ p.drawImage(event->rect(), buffer, event->rect());
+
if (touchDevice && event->rect().intersects(trackPad)) {
p.fillRect(trackPad, Qt::white);
p.setPen(QPen(QColor(224, 224, 224), 6));
@@ -306,10 +308,8 @@ protected:
p.drawPolygon(poly);
p.translate(0, rad - 20);
}
- p.resetTransform();
}
- p.drawImage(event->rect(), buffer, event->rect());
p.end();
}