mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
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:
parent
4d41fc0a43
commit
4a3161a281
5 changed files with 147 additions and 142 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue