mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
BUG-1965: Fixed a bug where a 1 pixel wide border around an active window is visible. Probably due to the "shadow" being captured too.
This commit is contained in:
parent
d25021631e
commit
1469f1fa41
9 changed files with 200 additions and 179 deletions
|
@ -130,7 +130,7 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
|||
/// Helper method for an easy DWM check
|
||||
/// </summary>
|
||||
/// <returns>bool true if DWM is available AND active</returns>
|
||||
public static bool isDWMEnabled() {
|
||||
public static bool IsDwmEnabled() {
|
||||
// According to: http://technet.microsoft.com/en-us/subscriptions/aa969538%28v=vs.85%29.aspx
|
||||
// And: http://msdn.microsoft.com/en-us/library/windows/desktop/aa969510%28v=vs.85%29.aspx
|
||||
// DMW is always enabled on Windows 8! So return true and save a check! ;-)
|
||||
|
|
|
@ -25,17 +25,17 @@ using System.Runtime.InteropServices;
|
|||
namespace GreenshotPlugin.UnmanagedHelpers {
|
||||
[StructLayout(LayoutKind.Sequential), Serializable()]
|
||||
public struct SIZE {
|
||||
public int width;
|
||||
public int height;
|
||||
public int Width;
|
||||
public int Height;
|
||||
public SIZE(Size size) : this(size.Width, size.Height) {
|
||||
|
||||
}
|
||||
public SIZE(int width, int height) {
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
Width = width;
|
||||
Height = height;
|
||||
}
|
||||
public Size ToSize() {
|
||||
return new Size(width, height);
|
||||
return new Size(Width, Height);
|
||||
}
|
||||
}
|
||||
[StructLayout(LayoutKind.Sequential), Serializable()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue