mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Code quality changes
This commit is contained in:
parent
f07ed83722
commit
610f45d082
189 changed files with 4609 additions and 5203 deletions
|
@ -383,12 +383,12 @@ namespace Greenshot.Drawing
|
|||
Rectangle drawingRect = new Rectangle(Bounds.Location, Bounds.Size);
|
||||
drawingRect.Intersect(clipRectangle);
|
||||
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, Bounds, renderMode);
|
||||
} else {
|
||||
filter.Apply(graphics, bmp, drawingRect, renderMode);
|
||||
}
|
||||
// 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, Bounds, renderMode);
|
||||
} else {
|
||||
filter.Apply(graphics, bmp, drawingRect, renderMode);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -517,7 +517,7 @@ namespace Greenshot.Drawing
|
|||
/// <param name="e"></param>
|
||||
public void HandleFieldChanged(object sender, FieldChangedEventArgs e) {
|
||||
LOG.DebugFormat("Field {0} changed", e.Field.FieldType);
|
||||
if (e.Field.FieldType == FieldType.SHADOW) {
|
||||
if (Equals(e.Field.FieldType, FieldType.SHADOW)) {
|
||||
accountForShadowChange = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue