diff --git a/Hotkeys.cs b/Hotkeys.cs index 61fc31c..4d2db55 100644 --- a/Hotkeys.cs +++ b/Hotkeys.cs @@ -112,7 +112,6 @@ private ScreenshotTask GetParamteresFromUI() _settings.canvasSizeCheckbox, _settings.canvasWidth, _settings.canvasHeight, - _settings.optimizeVistaCheckbox, _settings.cropModeKeepCenteredButton); } } diff --git a/Screenshot.cs b/Screenshot.cs index e9ff7b4..1b62320 100644 --- a/Screenshot.cs +++ b/Screenshot.cs @@ -52,7 +52,6 @@ internal struct ScreenshotTask public bool SaveInactiveDark; public bool SaveInactiveLight; public bool SaveInactiveTransparent; - public bool OptimizeVista; public bool CropMode; public bool SaveMask; @@ -64,7 +63,7 @@ public ScreenshotTask(IntPtr window, bool clipboard, string file, bool saveInactiveLight, bool saveMask, bool saveActiveTransparent, bool saveInactiveTransparent, bool canvas, int canvasX, int canvasY, - bool optimizeVista, bool cropMode) + bool cropMode) { WindowHandle = window; ClipboardNotDisk = clipboard; @@ -87,7 +86,6 @@ public ScreenshotTask(IntPtr window, bool clipboard, string file, SaveInactiveLight = saveInactiveLight; SaveInactiveTransparent = saveInactiveTransparent; SaveMask = saveMask; - OptimizeVista = optimizeVista; CropMode = cropMode; } } diff --git a/Settings.cs b/Settings.cs index f628e3e..7e77c7f 100644 --- a/Settings.cs +++ b/Settings.cs @@ -49,7 +49,6 @@ public class Settings public bool saveMaskCheckbox; public bool saveActiveTransparentCheckbox; public bool saveInactiveTransparentCheckbox; - public bool optimizeVistaCheckbox; public bool cropModeRemoveAllButton; public bool cropModeKeepCenteredButton; public int hotkeyKey = 44; @@ -179,11 +178,6 @@ public Settings() else saveInactiveTransparentCheckbox = VersionHelpers.HasAeroTransparency(); - /*if ((value = _registryKey.GetValue("OptimizeVista")) != null && value.GetType() == (typeof(int))) - optimizeVistaCheckbox = ((int)value & 1) == 1; - else - optimizeVistaCheckbox = (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor == 0) ? true : false;*/ - if ((value = _registryKey.GetValue("HotkeyKey")) != null && value.GetType() == (typeof(int))) hotkeyKey = (int)value;