mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 06:25:29 +00:00
API.cs: Disabled cleanup code on AppDomain.ProcessExit, as it would cause X errors.
Renamed libXrandr to libXrandr.so.2 for DllImports.
This commit is contained in:
parent
ed2bd2b0b6
commit
b373674564
|
@ -65,7 +65,7 @@ namespace OpenTK.Platform.X11
|
||||||
|
|
||||||
static API()
|
static API()
|
||||||
{
|
{
|
||||||
AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit);
|
//AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit);
|
||||||
defaultDisplay = Functions.XOpenDisplay(IntPtr.Zero);
|
defaultDisplay = Functions.XOpenDisplay(IntPtr.Zero);
|
||||||
defaultScreen = Functions.XDefaultScreen(DefaultDisplay);
|
defaultScreen = Functions.XDefaultScreen(DefaultDisplay);
|
||||||
rootWindow = Functions.XRootWindow(DefaultDisplay, DefaultScreen);
|
rootWindow = Functions.XRootWindow(DefaultDisplay, DefaultScreen);
|
||||||
|
@ -1345,7 +1345,7 @@ XF86VidModeGetGammaRampSize(
|
||||||
|
|
||||||
#region Xrandr
|
#region Xrandr
|
||||||
|
|
||||||
const string XrandrLibrary = "libXrandr";
|
const string XrandrLibrary = "libXrandr.so.2";
|
||||||
|
|
||||||
[DllImport(XrandrLibrary)]
|
[DllImport(XrandrLibrary)]
|
||||||
public static extern Bool XRRQueryExtension(Display dpy, ref int event_basep, ref int error_basep);
|
public static extern Bool XRRQueryExtension(Display dpy, ref int event_basep, ref int error_basep);
|
||||||
|
|
Loading…
Reference in a new issue