Fixed bug #149 for Greenshot 2.x too

This commit is contained in:
Robin 2020-02-11 11:16:41 +01:00
commit 881d6c6ec8

View file

@ -351,6 +351,11 @@ namespace Greenshot.Helpers
_capture = WindowCapture.CaptureRectangle(_capture, screen.Bounds); _capture = WindowCapture.CaptureRectangle(_capture, screen.Bounds);
captureTaken = true; captureTaken = true;
// As the screen shot might be on a different monitor we need to correct the mouse location
var correctedCursorLocation = _capture.CursorLocation;
correctedCursorLocation.Offset(-screen.Bounds.Location.X, -screen.Bounds.Location.Y);
_capture.CursorLocation = correctedCursorLocation;
break; break;
} }
break; break;