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
This commit is contained in:
JKlingen 2013-04-14 20:09:29 +00:00
commit 077185a529

View file

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