mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-08 18:40:35 +00:00
Use new DisplayDevice.GetDisplay() interface instead of obsolete AvailableDisplays.
This commit is contained in:
parent
a7964470c6
commit
4a62861dfc
|
@ -18,7 +18,10 @@ namespace Examples.Tests
|
|||
{
|
||||
public static void Main()
|
||||
{
|
||||
foreach (DisplayDevice dev in DisplayDevice.AvailableDisplays)
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
DisplayDevice dev = DisplayDevice.GetDisplay(DisplayIndex.First + i);
|
||||
if (dev != null)
|
||||
{
|
||||
Trace.WriteLine(dev.ToString());
|
||||
MessageBox.Show(dev.ToString());
|
||||
|
@ -31,4 +34,5 @@ namespace Examples.Tests
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue