Fix a math error which stopped cursor from drawing

This commit is contained in:
ArsenArsen 2017-06-07 10:25:00 +02:00
parent 35aafa0dea
commit 20d5314d6d
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ QPixmap *screenshotutil::fullscreenArea(bool cursor, qreal x, qreal y, qreal w,
QPixmap *withCursor = new QPixmap(noCursor);
QPainter painter(withCursor);
auto cursorData = PlatformBackend::inst().getCursor();
painter.drawPixmap(QCursor::pos() - std::get<0>(cursorData), std::get<1>(cursorData));
painter.drawPixmap(QCursor::pos() - std::get<0>(cursorData) - area.topLeft().toPoint(), std::get<1>(cursorData));
painter.end();
return withCursor;
}