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
This commit is contained in:
JKlingen 2013-04-14 19:32:41 +00:00
parent 0a900bc5d2
commit e6cfe62d59

View file

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