mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
BUG-2093: Fixed check if the Windows GDI blur can be used.
This commit is contained in:
parent
5d50cd8b96
commit
a5cabb2ced
1 changed files with 7 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue