mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 17:05:37 +00:00
Fixed error in X11 display.
This commit is contained in:
parent
7763c403ff
commit
a785d45b9c
|
@ -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