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:
parent
089134d0bd
commit
3af5e9c8c4
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue