Skip to content

Commit

Permalink
Removed remnants of the Vista optimization checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Aug 3, 2021
1 parent d7a4e5e commit c9f3066
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion Hotkeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ private ScreenshotTask GetParamteresFromUI()
_settings.canvasSizeCheckbox,
_settings.canvasWidth,
_settings.canvasHeight,
_settings.optimizeVistaCheckbox,
_settings.cropModeKeepCenteredButton);
}
}
Expand Down
4 changes: 1 addition & 3 deletions Screenshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand All @@ -87,7 +86,6 @@ public ScreenshotTask(IntPtr window, bool clipboard, string file,
SaveInactiveLight = saveInactiveLight;
SaveInactiveTransparent = saveInactiveTransparent;
SaveMask = saveMask;
OptimizeVista = optimizeVista;
CropMode = cropMode;
}
}
Expand Down
6 changes: 0 additions & 6 deletions Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit c9f3066

Please sign in to comment.