mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-25 10:26:55 +00:00
Missed part of the refactored X11 bindings.
This commit is contained in:
parent
dd612a2001
commit
7d37c2e68f
|
@ -321,16 +321,16 @@ namespace OpenTK.Platform
|
||||||
|
|
||||||
// get the X11 Visual info for the display.
|
// get the X11 Visual info for the display.
|
||||||
Platform.X11.XVisualInfo info = new Platform.X11.XVisualInfo();
|
Platform.X11.XVisualInfo info = new Platform.X11.XVisualInfo();
|
||||||
info.visualid = mode.Index;
|
info.VisualID = mode.Index;
|
||||||
int dummy;
|
int dummy;
|
||||||
window.VisualInfo = (Platform.X11.XVisualInfo)Marshal.PtrToStructure(
|
window.VisualInfo = (Platform.X11.XVisualInfo)Marshal.PtrToStructure(
|
||||||
Platform.X11.Functions.XGetVisualInfo(window.Display, Platform.X11.XVisualInfoMask.ID,
|
Platform.X11.Functions.XGetVisualInfo(window.Display, Platform.X11.XVisualInfoMask.ID,
|
||||||
ref info, out dummy), typeof(Platform.X11.XVisualInfo));
|
ref info, out dummy), typeof(Platform.X11.XVisualInfo));
|
||||||
|
|
||||||
// set the X11 colormap.
|
// set the X11 colormap.
|
||||||
SetStaticFieldValue(xplatui, "CustomVisual", window.VisualInfo.visual);
|
SetStaticFieldValue(xplatui, "CustomVisual", window.VisualInfo.Visual);
|
||||||
SetStaticFieldValue(xplatui, "CustomColormap",
|
SetStaticFieldValue(xplatui, "CustomColormap",
|
||||||
Platform.X11.Functions.XCreateColormap(window.Display, window.RootWindow, window.VisualInfo.visual, 0));
|
Platform.X11.Functions.XCreateColormap(window.Display, window.RootWindow, window.VisualInfo.Visual, 0));
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue