Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
hrod17 committed Oct 9, 2017
1 parent c95af29 commit 4fb9459
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fileutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,7 @@ void sendScreenJPG(QString opts, AbstractedSocket *socket)
cropRect.setHeight(optList.at(4).toInt());
}

//QPixmap screenshot = grabScreens();
QScreen *screen = QGuiApplication::primaryScreen();
QPixmap screenshot = screen->grabWindow(0);
QPixmap screenshot = grabScreens();
if(cropped) {
QPainter painterFrame(&screenshot);
painterFrame.setCompositionMode(QPainter::CompositionMode_Source);
Expand Down

0 comments on commit 4fb9459

Please sign in to comment.