Fixed DisplayDevice enumeration.

This commit is contained in:
the_fiddler 2008-01-24 09:30:49 +00:00
parent 30c63d6e3a
commit e9b811de17

View file

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