Limit screen record region to screen bounds

This commit is contained in:
Jaex 2017-09-26 13:21:34 +03:00
parent 77262d4043
commit 91bf483320

View file

@ -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)