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:
Robin 2016-05-22 00:16:06 +02:00
commit 1469f1fa41
9 changed files with 200 additions and 179 deletions

View file

@ -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! ;-)

View file

@ -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()]