Skip to content

Commit af17c96

Browse files
committed
limit last 150 point draw for penstyle
1 parent ba9c63c commit af17c96

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Geometry.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ void DrawingWidget::drawLineToFunc(qint64 id, qreal pressure) {
7171
QMap<qint64, QPointF>::const_iterator nextIt = it;
7272
++nextIt;
7373
QPainterPath path;
74-
74+
75+
int size = values.size() % 100;
76+
it = std::next(it, values.size() - size);
77+
nextIt = it;
78+
printf("%d\n", size);
79+
7580

7681
switch(fpenStyle){
7782
case SPLINE:

0 commit comments

Comments
 (0)