effects/screenshot: Fix a typo

grabPointerImage() needs the coordinates of the top left corner of the
screen, not its size.
This commit is contained in:
Vlad Zahorodnii 2021-05-03 20:52:35 +03:00
parent 089134d0bd
commit 3af5e9c8c4

View file

@ -380,8 +380,8 @@ bool ScreenShotEffect::takeScreenShot(ScreenShotScreenData *screenshot)
QImage snapshot = blitScreenshot(screenshot->screen->geometry(), devicePixelRatio);
if (screenshot->flags & ScreenShotIncludeCursor) {
const int xOffset = screenshot->screen->geometry().width();
const int yOffset = screenshot->screen->geometry().height();
const int xOffset = screenshot->screen->geometry().x();
const int yOffset = screenshot->screen->geometry().y();
grabPointerImage(snapshot, xOffset, yOffset);
}