mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
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:
parent
b21c114c1f
commit
8dc4647532
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue