mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 05:05:28 +00:00
Fixed DisplayDevice enumeration.
This commit is contained in:
parent
542fd0b2f7
commit
e12d986f24
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue