From d63c3806aa7007cedf406de2c5a7ee4c5b3c2dfa Mon Sep 17 00:00:00 2001 From: RKrom Date: Mon, 3 Dec 2012 21:11:35 +0000 Subject: [PATCH] Fix issue where uneven size are calculated, this way we always have a plural of 4. git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2350 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Forms/CaptureForm.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Greenshot/Forms/CaptureForm.cs b/Greenshot/Forms/CaptureForm.cs index 277c45ae8..efbd4bd96 100644 --- a/Greenshot/Forms/CaptureForm.cs +++ b/Greenshot/Forms/CaptureForm.cs @@ -485,7 +485,6 @@ namespace Greenshot.Forms { Rectangle after = GuiRectangle.GetGuiRectangle(cursorPos.X -2, allScreenBounds.Top, 75, this.Height+2); Invalidate(before); Invalidate(after); - LOG.Info(after); } } @@ -519,6 +518,8 @@ namespace Greenshot.Forms { // convert to be relative to top left corner of all screen bounds screenBounds.Location = WindowCapture.GetLocationRelativeToScreenBounds(screenBounds.Location); int relativeZoomSize = Math.Min(screenBounds.Width, screenBounds.Height) / 5; + // Make sure the final size is a plural of 4, this makes it look better + relativeZoomSize = relativeZoomSize - (relativeZoomSize % 4); Size zoomSize = new Size(relativeZoomSize, relativeZoomSize); Point zoomOffset = new Point(20, 20);