mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 20:35:32 +00:00
Renamed OpenTK.Platform.Windows.DisplayDevice to OpenTK.Platform.Windows.WindowsDisplayDevice.
This commit is contained in:
parent
d2cde0ddf0
commit
c6dbce69e8
|
@ -652,7 +652,7 @@ namespace OpenTK.Platform.Windows
|
|||
[DllImport("user32.dll", SetLastError = true)]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
public static extern BOOL EnumDisplayDevices([MarshalAs(UnmanagedType.LPStr)] LPCTSTR lpDevice,
|
||||
DWORD iDevNum, [In, Out] DisplayDevice lpDisplayDevice, DWORD dwFlags);
|
||||
DWORD iDevNum, [In, Out] WindowsDisplayDevice lpDisplayDevice, DWORD dwFlags);
|
||||
|
||||
#endregion
|
||||
|
||||
|
@ -1605,9 +1605,9 @@ namespace OpenTK.Platform.Windows
|
|||
/// The DISPLAY_DEVICE structure receives information about the display device specified by the iDevNum parameter of the EnumDisplayDevices function.
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
|
||||
internal class DisplayDevice
|
||||
internal class WindowsDisplayDevice
|
||||
{
|
||||
internal DisplayDevice()
|
||||
internal WindowsDisplayDevice()
|
||||
{
|
||||
size = (short)Marshal.SizeOf(this);
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ namespace OpenTK.Platform.Windows
|
|||
int device_count = 0, mode_count = 0;
|
||||
|
||||
// Get available video adapters and enumerate all monitors
|
||||
DisplayDevice dev1 = new DisplayDevice(), dev2 = new DisplayDevice();
|
||||
WindowsDisplayDevice dev1 = new WindowsDisplayDevice(), dev2 = new WindowsDisplayDevice();
|
||||
while (Functions.EnumDisplayDevices(null, device_count++, dev1, 0))
|
||||
{
|
||||
if ((dev1.StateFlags & DisplayDeviceStateFlags.AttachedToDesktop) == DisplayDeviceStateFlags.None)
|
||||
|
|
Loading…
Reference in a new issue