mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 04:25:30 +00:00
Trying to debug deadlock on screen resolution enumeration.
This commit is contained in:
parent
9d1316c51d
commit
a41007fd80
|
@ -23,17 +23,18 @@ namespace OpenTK.Platform.X11
|
|||
|
||||
static X11XrandrDisplayDevice()
|
||||
{
|
||||
lock (display_lock)
|
||||
//lock (display_lock)
|
||||
{
|
||||
for (int i = 0; i < API.ScreenCount; i++)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
Debug.Print("Checkpoint 1");
|
||||
XRRScreenSize[] array = Functions.XRRSizes(API.DefaultDisplay, i);
|
||||
Debug.Print("{0} resolutions.", array.Length);
|
||||
Debug.Indent();
|
||||
int count = array.Length;
|
||||
while (--count != 0)
|
||||
while (count-- != 0)
|
||||
Debug.Print(array[count].ToString());
|
||||
Debug.Unindent();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue