mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 10:05:31 +00:00
Fix build on Mono 1.2.4
This commit is contained in:
parent
437bf7946b
commit
69dec33ef7
|
@ -113,7 +113,11 @@ namespace OpenTK.Platform.X11
|
|||
this.Handle = info.Handle;
|
||||
this.Parent = info.Parent;
|
||||
|
||||
X11.WindowInfo winfo = info as X11.WindowInfo ?? (X11.WindowInfo)(info as Platform.WindowInfo);
|
||||
// Work around Mono 1.2.4 gmcs bug (resolved in 1.2.5)
|
||||
// X11.WindowInfo winfo = info as X11.WindowInfo ?? (X11.WindowInfo)(info as Platform.WindowInfo);
|
||||
X11.WindowInfo winfo = info as X11.WindowInfo;
|
||||
if (winfo == null)
|
||||
winfo = (X11.WindowInfo)(info as Platform.WindowInfo);
|
||||
|
||||
this.RootWindow = winfo.RootWindow;
|
||||
this.TopLevelWindow = winfo.TopLevelWindow;
|
||||
|
|
Loading…
Reference in a new issue