daily update on 20241002 by nitload youmu, intrinsic function rebuild, syntax style arrange

This commit is contained in:
Nitload
2024-10-03 04:03:06 +08:00
parent 0979123ac0
commit 6e2f93b053
265 changed files with 26732 additions and 19058 deletions
+6 -8
View File
@@ -48,13 +48,13 @@ namespace StgSharp
{
get
{
if (monitorsArray == null)
{
if( monitorsArray == null ) {
int count = 0;
IntPtr* arrayhandle = InternalIO.glfwGetMonitors(&count);
IntPtr* arrayhandle = InternalIO.glfwGetMonitors( &count );
monitorsArray = new IntPtr[count];
Marshal.Copy((IntPtr)arrayhandle, monitorsArray, 0, count);
Marshal.FreeHGlobal((IntPtr)arrayhandle);
Marshal.Copy(
( IntPtr )arrayhandle, monitorsArray, 0, count );
Marshal.FreeHGlobal( ( IntPtr )arrayhandle );
}
return monitorsArray;
}
@@ -62,10 +62,8 @@ namespace StgSharp
public static IntPtr DefaultMonitor
{
get { return MonitorsHandleArray[0]; }
get { return MonitorsHandleArray[ 0 ]; }
}
}
}