mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-13 03:35:34 +00:00
Added debug code to dump the number of screens.
This commit is contained in:
parent
84d2748c5e
commit
eb404886ac
|
@ -11,15 +11,38 @@ using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
using OpenTK.Graphics;
|
using OpenTK.Graphics;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace OpenTK.Platform.X11
|
namespace OpenTK.Platform.X11
|
||||||
{
|
{
|
||||||
internal class X11XrandrDisplayDevice : IDisplayDeviceDriver
|
internal class X11XrandrDisplayDevice : IDisplayDeviceDriver
|
||||||
{
|
{
|
||||||
|
static object display_lock = new object();
|
||||||
|
|
||||||
#region --- Constructors ---
|
#region --- Constructors ---
|
||||||
|
|
||||||
static X11XrandrDisplayDevice()
|
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.
|
// Construct a default device for testing purposes.
|
||||||
new DisplayDevice(new DisplayResolution(800, 600, 24, 0), true,
|
new DisplayDevice(new DisplayResolution(800, 600, 24, 0), true,
|
||||||
new DisplayResolution[]
|
new DisplayResolution[]
|
||||||
|
|
Loading…
Reference in a new issue