mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Limit screen record region to screen bounds
This commit is contained in:
parent
77262d4043
commit
91bf483320
1 changed files with 2 additions and 0 deletions
|
@ -150,6 +150,8 @@ private static void StartRecording(ScreenRecordOutput outputType, TaskSettings t
|
|||
break;
|
||||
}
|
||||
|
||||
Rectangle screenRectangle = CaptureHelpers.GetScreenBounds();
|
||||
captureRectangle = Rectangle.Intersect(captureRectangle, screenRectangle);
|
||||
captureRectangle = CaptureHelpers.EvenRectangleSize(captureRectangle);
|
||||
|
||||
if (IsRecording || !captureRectangle.IsValid() || screenRecorder != null)
|
||||
|
|
Loading…
Reference in a new issue