mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-04-20 06:21:56 +00:00
Use new properties from the API class.
This commit is contained in:
parent
a3ba77f35d
commit
ddd812cff4
|
@ -63,12 +63,13 @@ namespace OpenTK.Platform.X11
|
|||
//Utilities.ThrowOnX11Error = true; // Not very reliable
|
||||
|
||||
// Open the display to the X server, and obtain the screen and root window.
|
||||
window.Display = API.OpenDisplay(null); // null == default display
|
||||
//window.Display = API.OpenDisplay(null); // null == default display
|
||||
window.Display = API.DefaultDisplay;
|
||||
if (window.Display == IntPtr.Zero)
|
||||
throw new Exception("Could not open connection to X");
|
||||
|
||||
window.Screen = API.DefaultScreen(window.Display);
|
||||
window.RootWindow = API.RootWindow(window.Display, window.Screen);
|
||||
window.Screen = API.DefaultScreen;//Functions.XDefaultScreen(window.Display);
|
||||
window.RootWindow = API.RootWindow;//Functions.XRootWindow(window.Display, window.Screen);
|
||||
|
||||
Debug.Print("Display: {0}, Screen {1}, Root window: {2}",
|
||||
window.Display, window.Screen, window.RootWindow);
|
||||
|
|
Loading…
Reference in a new issue