From e6cfe62d5943ba6ef3a856c7779cba0b8015e308 Mon Sep 17 00:00:00 2001 From: JKlingen Date: Sun, 14 Apr 2013 19:32:41 +0000 Subject: [PATCH] fixed copy/paste error which caused magnified rectangle to be distorted git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2563 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Drawing/Filters/MagnifierFilter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Greenshot/Drawing/Filters/MagnifierFilter.cs b/Greenshot/Drawing/Filters/MagnifierFilter.cs index 73a3ff447..30788f2e6 100644 --- a/Greenshot/Drawing/Filters/MagnifierFilter.cs +++ b/Greenshot/Drawing/Filters/MagnifierFilter.cs @@ -53,7 +53,7 @@ namespace Greenshot.Drawing.Filters { int halfWidth = rect.Width / 2; int halfHeight = rect.Height / 2; int newWidth = rect.Width / magnificationFactor; - int newHeight = rect.Width / magnificationFactor; + int newHeight = rect.Height / magnificationFactor; Rectangle source = new Rectangle(rect.X + halfWidth - (newWidth / 2), rect.Y + halfHeight - (newHeight / 2), newWidth, newHeight); graphics.DrawImage(applyBitmap, rect, source, GraphicsUnit.Pixel); graphics.Restore(state);