From df6496c9014f702305fb4f421f466e4fd18cb812 Mon Sep 17 00:00:00 2001 From: Eric Tetz Date: Sun, 20 Feb 2022 13:14:43 -0700 Subject: [PATCH] fix 6111: screen-wide crosshair clipped at zoom-out --- ShareX.ScreenCaptureLib/Forms/RegionCaptureForm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ShareX.ScreenCaptureLib/Forms/RegionCaptureForm.cs b/ShareX.ScreenCaptureLib/Forms/RegionCaptureForm.cs index cecbf6136..bce450274 100644 --- a/ShareX.ScreenCaptureLib/Forms/RegionCaptureForm.cs +++ b/ShareX.ScreenCaptureLib/Forms/RegionCaptureForm.cs @@ -1242,9 +1242,9 @@ private void DrawCrosshair(Graphics g) int offset = 5; PointF mousePos = ScaledClientMousePosition; PointF left = new PointF(mousePos.X - offset, mousePos.Y), left2 = new PointF(0, mousePos.Y); - PointF right = new PointF(mousePos.X + offset, mousePos.Y), right2 = new PointF(ClientArea.Width - 1, mousePos.Y); + PointF right = new PointF(mousePos.X + offset, mousePos.Y), right2 = new PointF((ClientArea.Width - 1) / ZoomFactor, mousePos.Y); PointF top = new PointF(mousePos.X, mousePos.Y - offset), top2 = new PointF(mousePos.X, 0); - PointF bottom = new PointF(mousePos.X, mousePos.Y + offset), bottom2 = new PointF(mousePos.X, ClientArea.Height - 1); + PointF bottom = new PointF(mousePos.X, mousePos.Y + offset), bottom2 = new PointF(mousePos.X, (ClientArea.Height - 1) / ZoomFactor); if (left.X - left2.X > 10) {