BUG-2093: Fixed check if the Windows GDI blur can be used.

This commit is contained in:
Robin 2017-01-13 20:54:16 +01:00
commit a5cabb2ced

View file

@ -171,11 +171,16 @@ namespace GreenshotPlugin.UnmanagedHelpers {
/// </summary>
/// <param name="radius"></param>
/// <returns>false if blur is not possible</returns>
public static bool IsBlurPossible(int radius) {
public static bool IsBlurPossible(int radius)
{
if (!_isBlurEnabled) {
return false;
}
return Environment.OSVersion.Version.Minor < 2 || radius >= 20;
if (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor < 2)
{
return true;
}
return Environment.OSVersion.Version.Major > 6 && radius >= 20;
}
/// <summary>