Renamed OpenTK.Platform.Windows.DisplayDevice to OpenTK.Platform.Windows.WindowsDisplayDevice.

This commit is contained in:
the_fiddler 2008-01-27 10:23:02 +00:00
parent d2cde0ddf0
commit c6dbce69e8
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}

View file

@ -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)