Commit 3af5e9c8 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

effects/screenshot: Fix a typo

grabPointerImage() needs the coordinates of the top left corner of the
screen, not its size.
parent 089134d0
......@@ -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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment