Fixed some capture issues, when trying to capture or show thumbnails of Windows that are iconized the size calculations are wrong.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2206 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-10-26 18:07:55 +00:00
commit 4a3161a281
5 changed files with 147 additions and 142 deletions

View file

@ -25,17 +25,17 @@ using System.Runtime.InteropServices;
namespace GreenshotPlugin.UnmanagedHelpers {
[StructLayout(LayoutKind.Sequential), Serializable()]
public struct SIZE {
public int cx;
public int cy;
public int width;
public int height;
public SIZE(Size size) : this(size.Width, size.Height) {
}
public SIZE(int cx, int cy) {
this.cx = cx;
this.cy = cy;
public SIZE(int width, int height) {
this.width = width;
this.height = height;
}
public Size ToSize() {
return new Size(cx, cy);
return new Size(width, height);
}
}