daily update on 20240424 by nitloady youmu
This commit is contained in:
@@ -90,7 +90,11 @@ namespace StgSharp.Graphics
|
||||
public int Height
|
||||
{
|
||||
get => height;
|
||||
set => height = value;
|
||||
set
|
||||
{
|
||||
height = value;
|
||||
InternalIO.glfwSetWindowSize(windowID, Width, Height);
|
||||
}
|
||||
}
|
||||
|
||||
public bool ShouldClose
|
||||
@@ -109,6 +113,7 @@ namespace StgSharp.Graphics
|
||||
{
|
||||
width = (int)value.X;
|
||||
height = (int)value.Y;
|
||||
InternalIO.glfwSetWindowSize(windowID, Width, Height);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,7 +123,11 @@ namespace StgSharp.Graphics
|
||||
public int Width
|
||||
{
|
||||
get => width;
|
||||
set => width = value;
|
||||
set
|
||||
{
|
||||
width = value;
|
||||
InternalIO.glfwSetWindowSize(windowID, Width, Height);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -206,18 +215,6 @@ namespace StgSharp.Graphics
|
||||
public void SetSizeLimit(int minWidth, int minHeight, int maxWidth, int maxHeight)
|
||||
{ InternalIO.glfwSetWindowSizeLimits(this.windowID, minWidth, minHeight, maxWidth, maxHeight); }
|
||||
|
||||
#region form main
|
||||
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
internal void InternalDeInit() { DeInit(); }
|
||||
|
||||
|
||||
unsafe ~Form() { Marshal.FreeHGlobal(graphicContextID); }
|
||||
|
||||
#endregion form main
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user