From 20d5314d6d7f7588e60c890c151b1dc050969698 Mon Sep 17 00:00:00 2001 From: ArsenArsen Date: Wed, 7 Jun 2017 10:25:00 +0200 Subject: [PATCH] Fix a math error which stopped cursor from drawing --- screenshotutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenshotutil.cpp b/screenshotutil.cpp index 1020218..a7da1cc 100644 --- a/screenshotutil.cpp +++ b/screenshotutil.cpp @@ -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; }