mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
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:
parent
e6cfe62d59
commit
077185a529
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue