From 2ed433ffefb77804e9245bad256b4464c4a08c41 Mon Sep 17 00:00:00 2001 From: Jaex Date: Sat, 31 May 2014 17:08:21 +0300 Subject: [PATCH] Magnifier position fix --- ScreenCaptureLib/Forms/RectangleRegion.cs | 7 ++++++- ScreenCaptureLib/RegionHelpers/SurfaceOptions.cs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ScreenCaptureLib/Forms/RectangleRegion.cs b/ScreenCaptureLib/Forms/RectangleRegion.cs index b27e8268f..1d3dfe6f1 100644 --- a/ScreenCaptureLib/Forms/RectangleRegion.cs +++ b/ScreenCaptureLib/Forms/RectangleRegion.cs @@ -290,7 +290,12 @@ private void DrawCrosshair(Graphics g) private void DrawMagnifier(Graphics g) { Point mousePos = InputManager.MousePosition0Based; - int offsetX = 10, offsetY = 50; + int offsetX = 10, offsetY = 10; + + if (Config.ShowInfo && AreaManager.IsCurrentAreaValid && AreaManager.CurrentArea.Location == mousePos) + { + offsetY = 50; + } using (Bitmap magnifier = Magnifier(SurfaceImage, mousePos, Config.MagnifierPixelCount, Config.MagnifierPixelCount, Config.MagnifierPixelSize)) { diff --git a/ScreenCaptureLib/RegionHelpers/SurfaceOptions.cs b/ScreenCaptureLib/RegionHelpers/SurfaceOptions.cs index e37b27e4b..6471f0da8 100644 --- a/ScreenCaptureLib/RegionHelpers/SurfaceOptions.cs +++ b/ScreenCaptureLib/RegionHelpers/SurfaceOptions.cs @@ -34,7 +34,7 @@ public class SurfaceOptions [DefaultValue(true), Description("Allow screenshot capture as soon as the mouse is released. This disables the ability to capture multiple shapes and to move and/or resize them.")] public bool QuickCrop { get; set; } - [DefaultValue(true), Description("Show coordinate and size information.")] + [DefaultValue(false), Description("Show coordinate and size information.")] public bool ShowInfo { get; set; } [DefaultValue(true), Description("Show magnifier.")]