From e12d986f246940af7ac8a6fd52592e41f5170f4b Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 24 Jan 2008 09:30:49 +0000 Subject: [PATCH] Fixed DisplayDevice enumeration. --- Source/OpenTK/Platform/Windows/WinDisplayDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/Windows/WinDisplayDevice.cs b/Source/OpenTK/Platform/Windows/WinDisplayDevice.cs index 76995559..1784b861 100644 --- a/Source/OpenTK/Platform/Windows/WinDisplayDevice.cs +++ b/Source/OpenTK/Platform/Windows/WinDisplayDevice.cs @@ -41,7 +41,7 @@ namespace OpenTK.Platform.Windows DisplayDevice dev1 = new DisplayDevice(), dev2 = new DisplayDevice(); while (Functions.EnumDisplayDevices(null, device_count++, dev1, 0)) { - if ((dev1.StateFlags & DisplayDeviceStateFlags.AttachedToDesktop) != DisplayDeviceStateFlags.None) + if ((dev1.StateFlags & DisplayDeviceStateFlags.AttachedToDesktop) == DisplayDeviceStateFlags.None) continue; DeviceMode monitor_mode = new DeviceMode();