summaryrefslogtreecommitdiffstats
path: root/examples/multitouch/fingerpaint
diff options
context:
space:
mode:
Diffstat (limited to 'examples/multitouch/fingerpaint')
-rw-r--r--examples/multitouch/fingerpaint/scribblearea.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/multitouch/fingerpaint/scribblearea.cpp b/examples/multitouch/fingerpaint/scribblearea.cpp
index c07d982..0e828cc 100644
--- a/examples/multitouch/fingerpaint/scribblearea.cpp
+++ b/examples/multitouch/fingerpaint/scribblearea.cpp
@@ -192,7 +192,7 @@ bool ScribbleArea::event(QEvent *event)
QPainter painter(&image);
painter.setPen(Qt::NoPen);
- painter.setBrush(myPenColors.at(touchPoint.id()));
+ painter.setBrush(myPenColors.at(touchPoint.id() % myPenColors.count()));
painter.drawEllipse(rect);
painter.end();