mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 05:05:31 +00:00
Added debug code to dump the number of screens.
This commit is contained in:
parent
ddd812cff4
commit
1578d18666
|
@ -11,15 +11,38 @@ using System.Collections.Generic;
|
|||
using System.Text;
|
||||
|
||||
using OpenTK.Graphics;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace OpenTK.Platform.X11
|
||||
{
|
||||
internal class X11XrandrDisplayDevice : IDisplayDeviceDriver
|
||||
{
|
||||
static object display_lock = new object();
|
||||
|
||||
#region --- Constructors ---
|
||||
|
||||
static X11XrandrDisplayDevice()
|
||||
{
|
||||
lock (display_lock)
|
||||
{
|
||||
for (int i = 0; i < API.ScreenCount; i++)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
XRRScreenSize[] array = Functions.XRRSizes(API.DefaultDisplay, i);
|
||||
Debug.Print("{0} resolutions.", array.Length);
|
||||
Debug.Indent();
|
||||
int count = array.Length;
|
||||
while (--count != 0)
|
||||
Debug.Print(array[count].ToString());
|
||||
Debug.Unindent();
|
||||
}
|
||||
}
|
||||
//Functions.XRRSizes(API.DefaultDisplay, API.DefaultScreen,
|
||||
//Functions.XRRGetScreenInfo(API.DefaultDisplay);
|
||||
|
||||
}
|
||||
|
||||
// Construct a default device for testing purposes.
|
||||
new DisplayDevice(new DisplayResolution(800, 600, 24, 0), true,
|
||||
new DisplayResolution[]
|
||||
|
|
Loading…
Reference in a new issue