mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 06:05:29 +00:00
Fixed some whitespace and normalized line-endings.
This commit is contained in:
parent
7b49c33f71
commit
9619b609a5
|
@ -66,8 +66,8 @@ namespace OpenTK.Platform.X11
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
static API()
|
static API()
|
||||||
{
|
{
|
||||||
Debug.Print("Initializing threaded X11: {0}.", Functions.XInitThreads().ToString());
|
Debug.Print("Initializing threaded X11: {0}.", Functions.XInitThreads().ToString());
|
||||||
|
|
||||||
AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit);
|
AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit);
|
||||||
|
|
||||||
|
@ -86,9 +86,9 @@ namespace OpenTK.Platform.X11
|
||||||
screenCount = Functions.XScreenCount(DefaultDisplay);
|
screenCount = Functions.XScreenCount(DefaultDisplay);
|
||||||
//Debug.Print("Default Display: {0}, Default Screen: {1}, Default Root Window: {2}, Screen Count: {3}",
|
//Debug.Print("Default Display: {0}, Default Screen: {1}, Default Root Window: {2}, Screen Count: {3}",
|
||||||
// DefaultDisplay, DefaultScreen, RootWindow, ScreenCount);
|
// DefaultDisplay, DefaultScreen, RootWindow, ScreenCount);
|
||||||
Debug.Print("Display connection: {0}, Screen count: {1}", DefaultDisplay, ScreenCount);
|
Debug.Print("Display connection: {0}, Screen count: {1}", DefaultDisplay, ScreenCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void CurrentDomain_ProcessExit(object sender, EventArgs e)
|
static void CurrentDomain_ProcessExit(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (defaultDisplay != IntPtr.Zero)
|
if (defaultDisplay != IntPtr.Zero)
|
||||||
|
@ -754,67 +754,67 @@ XF86VidModeGetGammaRampSize(
|
||||||
|
|
||||||
#pragma warning restore 0169, 0649
|
#pragma warning restore 0169, 0649
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Motif
|
#region Motif
|
||||||
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
internal struct MotifWmHints
|
internal struct MotifWmHints
|
||||||
{
|
{
|
||||||
internal IntPtr flags;
|
internal IntPtr flags;
|
||||||
internal IntPtr functions;
|
internal IntPtr functions;
|
||||||
internal IntPtr decorations;
|
internal IntPtr decorations;
|
||||||
internal IntPtr input_mode;
|
internal IntPtr input_mode;
|
||||||
internal IntPtr status;
|
internal IntPtr status;
|
||||||
|
|
||||||
public override string ToString ()
|
public override string ToString ()
|
||||||
{
|
{
|
||||||
return string.Format("MotifWmHints <flags={0}, functions={1}, decorations={2}, input_mode={3}, status={4}", (MotifFlags) flags.ToInt32 (), (MotifFunctions) functions.ToInt32 (), (MotifDecorations) decorations.ToInt32 (), (MotifInputMode) input_mode.ToInt32 (), status.ToInt32 ());
|
return string.Format("MotifWmHints <flags={0}, functions={1}, decorations={2}, input_mode={3}, status={4}", (MotifFlags) flags.ToInt32 (), (MotifFunctions) functions.ToInt32 (), (MotifDecorations) decorations.ToInt32 (), (MotifInputMode) input_mode.ToInt32 (), status.ToInt32 ());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Flags]
|
[Flags]
|
||||||
internal enum MotifFlags
|
internal enum MotifFlags
|
||||||
{
|
{
|
||||||
Functions = 1,
|
Functions = 1,
|
||||||
Decorations = 2,
|
Decorations = 2,
|
||||||
InputMode = 4,
|
InputMode = 4,
|
||||||
Status = 8
|
Status = 8
|
||||||
}
|
}
|
||||||
|
|
||||||
[Flags]
|
[Flags]
|
||||||
internal enum MotifFunctions
|
internal enum MotifFunctions
|
||||||
{
|
{
|
||||||
All = 0x01,
|
All = 0x01,
|
||||||
Resize = 0x02,
|
Resize = 0x02,
|
||||||
Move = 0x04,
|
Move = 0x04,
|
||||||
Minimize = 0x08,
|
Minimize = 0x08,
|
||||||
Maximize = 0x10,
|
Maximize = 0x10,
|
||||||
Close = 0x20
|
Close = 0x20
|
||||||
}
|
}
|
||||||
|
|
||||||
[Flags]
|
[Flags]
|
||||||
internal enum MotifDecorations
|
internal enum MotifDecorations
|
||||||
{
|
{
|
||||||
All = 0x01,
|
All = 0x01,
|
||||||
Border = 0x02,
|
Border = 0x02,
|
||||||
ResizeH = 0x04,
|
ResizeH = 0x04,
|
||||||
Title = 0x08,
|
Title = 0x08,
|
||||||
Menu = 0x10,
|
Menu = 0x10,
|
||||||
Minimize = 0x20,
|
Minimize = 0x20,
|
||||||
Maximize = 0x40,
|
Maximize = 0x40,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Flags]
|
[Flags]
|
||||||
internal enum MotifInputMode
|
internal enum MotifInputMode
|
||||||
{
|
{
|
||||||
Modeless = 0,
|
Modeless = 0,
|
||||||
ApplicationModal = 1,
|
ApplicationModal = 1,
|
||||||
SystemModal = 2,
|
SystemModal = 2,
|
||||||
FullApplicationModal = 3
|
FullApplicationModal = 3
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in a new issue