Fix size calculation math

By @lclc98
This commit is contained in:
ArsenArsen 2017-07-03 16:00:49 +02:00
parent 70b5aae9d1
commit 855d01f489
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@ QPixmap screenshotutil::fullscreen(bool cursor) {
int height = 0, width = 0;
for (QScreen *screen : QApplication::screens()) {
QRect geo = screen->geometry();
width = qMax(geo.right() + geo.width(), width);
height = qMax(geo.bottom() + geo.height(), height);
width = qMax(geo.left() + geo.width(), width);
height = qMax(geo.top() + geo.height(), height);
}
QPixmap image(width, height);
image.fill(Qt::transparent);