Code quality changes, and added the possibility to set the amount of colors for the Quantizer.

This commit is contained in:
RKrom 2014-05-11 11:23:56 +02:00
commit 77a92d98c3
92 changed files with 690 additions and 653 deletions

View file

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