mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Code quality changes, and added the possibility to set the amount of colors for the Quantizer.
This commit is contained in:
parent
3b1560390b
commit
77a92d98c3
92 changed files with 690 additions and 653 deletions
|
@ -534,9 +534,8 @@ namespace Greenshot.Drawing {
|
|||
get {
|
||||
if (CanUndo) {
|
||||
return undoStack.Peek().ActionLanguageKey;
|
||||
} else {
|
||||
return LangKey.none;
|
||||
}
|
||||
return LangKey.none;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -547,9 +546,8 @@ namespace Greenshot.Drawing {
|
|||
get {
|
||||
if (CanRedo) {
|
||||
return redoStack.Peek().ActionLanguageKey;
|
||||
} else {
|
||||
return LangKey.none;
|
||||
}
|
||||
return LangKey.none;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1186,7 +1184,7 @@ namespace Greenshot.Drawing {
|
|||
return;
|
||||
}
|
||||
|
||||
if (elements.hasIntersectingFilters(clipRectangle)) {
|
||||
if (elements.HasIntersectingFilters(clipRectangle)) {
|
||||
if (buffer != null) {
|
||||
if (buffer.Width != Image.Width || buffer.Height != Image.Height || buffer.PixelFormat != Image.PixelFormat) {
|
||||
buffer.Dispose();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue