From 84d2748c5e6c2e03adcad087db8948b17de86e43 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 25 Jan 2008 13:12:53 +0000 Subject: [PATCH] Use new properties from the API class. --- Source/OpenTK/Platform/X11/X11GLNative.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/OpenTK/Platform/X11/X11GLNative.cs b/Source/OpenTK/Platform/X11/X11GLNative.cs index 2217c3f4..01c1481e 100644 --- a/Source/OpenTK/Platform/X11/X11GLNative.cs +++ b/Source/OpenTK/Platform/X11/X11GLNative.cs @@ -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);