Fixed bug #149: If using a full screen capture of the current monitor, not the default, the mouse cursor is not visible.

This commit is contained in:
Krom, Robertus 2020-02-11 10:53:50 +01:00
commit 8dc4647532

View file

@ -310,6 +310,10 @@ namespace Greenshot.Helpers {
if (screen.Bounds.Contains(mouseLocation)) {
_capture = WindowCapture.CaptureRectangle(_capture, screen.Bounds);
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;
}
}