From a1931b790dcb973f2f52f6c9836481e7274fc2fb Mon Sep 17 00:00:00 2001 From: JKlingen Date: Wed, 28 Nov 2012 20:52:58 +0000 Subject: [PATCH] added simple "easing" effect to zoom animation git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2330 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Forms/CaptureForm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Greenshot/Forms/CaptureForm.cs b/Greenshot/Forms/CaptureForm.cs index d7f4b1902..a20ca29a5 100644 --- a/Greenshot/Forms/CaptureForm.cs +++ b/Greenshot/Forms/CaptureForm.cs @@ -448,8 +448,8 @@ namespace Greenshot.Forms { if (isZooming && captureMode != CaptureMode.Window) { Invalidate(ZoomArea(lastPos, zoomSize)); if (zoomSize.Width < 200) { - zoomSize.Width += 10; - zoomSize.Height += 10; + zoomSize.Width += (220-zoomSize.Width)/5; + zoomSize.Height += (220-zoomSize.Height)/5; } else { isAnimating = false; }