Scissor Fix
This commit is contained in:
parent
31d20221a6
commit
3595cfc27d
@ -10,7 +10,7 @@
|
|||||||
<IncludeSymbols>False</IncludeSymbols>
|
<IncludeSymbols>False</IncludeSymbols>
|
||||||
<RepositoryUrl>https://git.jacobtech.com/JacobTech.com/GraphicsManager</RepositoryUrl>
|
<RepositoryUrl>https://git.jacobtech.com/JacobTech.com/GraphicsManager</RepositoryUrl>
|
||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
<Version>1.0.9-alpha81</Version>
|
<Version>1.0.9-alpha83</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||||
|
@ -77,10 +77,18 @@ public abstract class ParentBase : Rectangle, IParent
|
|||||||
return;
|
return;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ny += Location.Y;
|
if (Location.Y > -1)
|
||||||
nh -= Location.Y;
|
{
|
||||||
if (Size.Y < nh)
|
ny += Location.Y;
|
||||||
nh = Size.Y;
|
nh -= Location.Y;
|
||||||
|
if (Size.Y < nh)
|
||||||
|
nh = Size.Y;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (Size.Y + Location.Y < nh)
|
||||||
|
nh = Size.Y + Location.Y;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (nw == 0 || nh == 0) return;
|
if (nw == 0 || nh == 0) return;
|
||||||
GL.Scissor(nx, Window!.CS.Y - ny - nh, nw, nh);
|
GL.Scissor(nx, Window!.CS.Y - ny - nh, nw, nh);
|
||||||
|
Loading…
Reference in New Issue
Block a user