From cf41a23fb1438f6a7972a9d612f164ff96b798d0 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 27 Jan 2008 15:53:04 +0000 Subject: [PATCH] Fixed error in X11 display. --- Source/OpenTK/Graphics/DisplayDevice.cs | 4 ++-- Source/OpenTK/Platform/X11/X11GLNative.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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");