We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da82b0f commit 60f47bfCopy full SHA for 60f47bf
1 file changed
Data/RectRegion.cs
@@ -91,8 +91,8 @@ public double Height
91
_height = value;
92
if (OwnedTexture != null)
93
{
94
- if (_height > OwnedTexture.ImageHeight)
95
- _height = OwnedTexture.ImageHeight;
+ if ((_height + Y) > OwnedTexture.ImageHeight)
+ _height = OwnedTexture.ImageHeight - Y;
96
}
97
if (_height < 0)
98
_height = 1;
@@ -110,8 +110,8 @@ public double Width
110
_width = value;
111
112
113
- if (_width > OwnedTexture.ImageWidth)
114
- _width = OwnedTexture.ImageWidth;
+ if ((_width + X) > OwnedTexture.ImageWidth)
+ _width = OwnedTexture.ImageWidth - X;
115
116
if (_width < 0)
117
_width = 1;
0 commit comments