mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 07:55:39 +00:00
Overrode ToString in WindowInfo implementations.
Debugging NRE in X11Keyboard constructor.
This commit is contained in:
parent
b526c077d5
commit
a987a5daf6
|
@ -28,5 +28,12 @@ namespace OpenTK.Platform.Windows
|
|||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return String.Format("Windows.WindowInfo: Handle {0}{1} Parent {2}",
|
||||
this.Handle, System.Environment.NewLine, this.Parent.ToString());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,5 +31,11 @@ namespace OpenTK.Platform.X11
|
|||
|
||||
public IntPtr Handle { get { return handle; } internal set { handle = value; } }
|
||||
public IWindowInfo Parent { get { return parent; } internal set { parent = value as WindowInfo; } }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return String.Format("X11.WindowInfo: Display {0}, Screen {1}, Handle {2}{3} Parent {4}",
|
||||
this.Display, this.Screen, this.Handle, System.Environment.NewLine, this.Parent.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -100,6 +100,7 @@ namespace OpenTK.Platform.X11
|
|||
|
||||
internal X11Keyboard(WindowInfo window)
|
||||
{
|
||||
/*
|
||||
this.window = window;
|
||||
Initialize();
|
||||
|
||||
|
@ -112,7 +113,7 @@ namespace OpenTK.Platform.X11
|
|||
//keysyms = (IntPtr[])Marshal.PtrToStructure(keysym_ptr, typeof(IntPtr[]));
|
||||
|
||||
API.Free(keysym_ptr);
|
||||
|
||||
*/
|
||||
Keyboard kb = new Keyboard();
|
||||
kb.Description = "Default X11 keyboard";
|
||||
kb.NumberOfKeys = lastKeyCode - firstKeyCode + 1;
|
||||
|
|
Loading…
Reference in a new issue