Fixed error in X11 display.

This commit is contained in:
the_fiddler 2008-01-27 15:53:04 +00:00
parent 7763c403ff
commit a785d45b9c
2 changed files with 3 additions and 3 deletions

View file

@ -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);
}

View file

@ -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");