Fixed error in X11 display.
This commit is contained in:
parent
fa68e80d9f
commit
cf41a23fb1
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue