mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-08-04 01:41:01 +00:00
Add SuppressUnmanagedCodeSecurity and SetLastError attributes.
This commit is contained in:
parent
baf3247afe
commit
73cb7a5dd2
|
@ -470,11 +470,8 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
#region SwapBuffers
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="dc"></param>
|
||||
[DllImport("gdi32.dll")]
|
||||
[SuppressUnmanagedCodeSecurity]
|
||||
[DllImport("gdi32.dll", SetLastError=true)]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
internal static extern bool SwapBuffers(IntPtr dc);
|
||||
|
||||
|
@ -1433,8 +1430,8 @@ namespace OpenTK.Platform.Windows
|
|||
#endregion
|
||||
|
||||
#region PixelFormatDescriptor
|
||||
|
||||
#pragma warning disable 0169
|
||||
|
||||
#pragma warning disable 0169
|
||||
|
||||
/// <summary>
|
||||
/// Describes a pixel format. It is used when interfacing with the WINAPI to create a new Context.
|
||||
|
@ -1469,8 +1466,8 @@ namespace OpenTK.Platform.Windows
|
|||
internal int LayerMask;
|
||||
internal int VisibleMask;
|
||||
internal int DamageMask;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#pragma warning restore 0169
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue