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
|
@ -117,10 +117,10 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
|||
public static extern uint DwmEnableComposition(uint uCompositionAction);
|
||||
|
||||
public static void EnableComposition() {
|
||||
DWM.DwmEnableComposition(DWM.DWM_EC_ENABLECOMPOSITION);
|
||||
DwmEnableComposition(DWM_EC_ENABLECOMPOSITION);
|
||||
}
|
||||
public static void DisableComposition() {
|
||||
DWM.DwmEnableComposition(DWM.DWM_EC_DISABLECOMPOSITION);
|
||||
DwmEnableComposition(DWM_EC_DISABLECOMPOSITION);
|
||||
}
|
||||
|
||||
// Key to ColorizationColor for DWM
|
||||
|
@ -139,7 +139,7 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
|||
}
|
||||
if (Environment.OSVersion.Version.Major >= 6) {
|
||||
bool dwmEnabled;
|
||||
DWM.DwmIsCompositionEnabled(out dwmEnabled);
|
||||
DwmIsCompositionEnabled(out dwmEnabled);
|
||||
return dwmEnabled;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue