mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -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>
|
/// </summary>
|
||||||
/// <param name="radius"></param>
|
/// <param name="radius"></param>
|
||||||
/// <returns>false if blur is not possible</returns>
|
/// <returns>false if blur is not possible</returns>
|
||||||
public static bool IsBlurPossible(int radius) {
|
public static bool IsBlurPossible(int radius)
|
||||||
|
{
|
||||||
if (!_isBlurEnabled) {
|
if (!_isBlurEnabled) {
|
||||||
return false;
|
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>
|
/// <summary>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue