From a5cabb2ced922d993fe5116555ff03387beedac2 Mon Sep 17 00:00:00 2001 From: Robin Date: Fri, 13 Jan 2017 20:54:16 +0100 Subject: [PATCH] BUG-2093: Fixed check if the Windows GDI blur can be used. --- GreenshotPlugin/UnmanagedHelpers/GDIplus.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/GreenshotPlugin/UnmanagedHelpers/GDIplus.cs b/GreenshotPlugin/UnmanagedHelpers/GDIplus.cs index f8671f335..05b202105 100644 --- a/GreenshotPlugin/UnmanagedHelpers/GDIplus.cs +++ b/GreenshotPlugin/UnmanagedHelpers/GDIplus.cs @@ -171,11 +171,16 @@ namespace GreenshotPlugin.UnmanagedHelpers { /// /// /// false if blur is not possible - 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; } ///