From 077185a529b4c096229a28e31a1624698e4dc9f6 Mon Sep 17 00:00:00 2001 From: JKlingen Date: Sun, 14 Apr 2013 20:09:29 +0000 Subject: [PATCH] added temporary bug fix for magnifier filter being repainted wrong when drawing another element above git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2564 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Drawing/DrawableContainer.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Greenshot/Drawing/DrawableContainer.cs b/Greenshot/Drawing/DrawableContainer.cs index 8e165fc76..31d830146 100644 --- a/Greenshot/Drawing/DrawableContainer.cs +++ b/Greenshot/Drawing/DrawableContainer.cs @@ -448,7 +448,13 @@ namespace Greenshot.Drawing { } else { Rectangle drawingRect = new Rectangle(Bounds.Location, Bounds.Size); drawingRect.Intersect(clipRectangle); - filter.Apply(graphics, bmp, drawingRect, renderMode); + if(filter is MagnifierFilter) { + // quick&dirty bugfix, because MagnifierFilter behaves differently when drawn only partially + // what we should actually do to resolve this is add a better magnifier which is not that special + filter.Apply(graphics, bmp, this.Bounds, renderMode); + } else { + filter.Apply(graphics, bmp, drawingRect, renderMode); + } } } }