diff --git a/Source/OpenTK/Graphics/DisplayDevice.cs b/Source/OpenTK/Graphics/DisplayDevice.cs index ed2b6d61..6b90dc30 100644 --- a/Source/OpenTK/Graphics/DisplayDevice.cs +++ b/Source/OpenTK/Graphics/DisplayDevice.cs @@ -384,7 +384,7 @@ namespace OpenTK.Graphics foreach (Form form in forms) { form.Opacity += opacity_step; - form.Update(); + form.Refresh(); } Thread.Sleep(sleep_step); } @@ -402,7 +402,7 @@ namespace OpenTK.Graphics foreach (Form form in forms) { form.Opacity -= opacity_step; - form.Update(); + form.Refresh(); } Thread.Sleep(sleep_step); } diff --git a/Source/OpenTK/Platform/X11/X11GLNative.cs b/Source/OpenTK/Platform/X11/X11GLNative.cs index 95dc1321..44faa0da 100644 --- a/Source/OpenTK/Platform/X11/X11GLNative.cs +++ b/Source/OpenTK/Platform/X11/X11GLNative.cs @@ -82,7 +82,7 @@ namespace OpenTK.Platform.X11 // Open the display to the X server, and obtain the screen and root window. //window.Display = API.OpenDisplay(null); // null == default display - window.Display = this.window.Display; + window.Display = API.DefaultDisplay; if (window.Display == IntPtr.Zero) throw new Exception("Could not open connection to X");