mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 14:25:39 +00:00
Replaced tabs with spaces.
This commit is contained in:
parent
416c40b333
commit
5ef2a59306
|
@ -20,7 +20,7 @@
|
||||||
// Copyright (c) 2004 Novell, Inc.
|
// Copyright (c) 2004 Novell, Inc.
|
||||||
//
|
//
|
||||||
// Authors:
|
// Authors:
|
||||||
// Peter Bartok pbartok@novell.com
|
// Peter Bartok pbartok@novell.com
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
|
@ -1008,20 +1008,20 @@ namespace OpenTK.Platform.X11
|
||||||
Sibling = 1 << 5,
|
Sibling = 1 << 5,
|
||||||
StackMode = 1 << 6,
|
StackMode = 1 << 6,
|
||||||
|
|
||||||
//BackPixmap (1L<<0)
|
//BackPixmap (1L<<0)
|
||||||
//BackPixel (1L<<1)
|
//BackPixel (1L<<1)
|
||||||
//SaveUnder (1L<<10)
|
//SaveUnder (1L<<10)
|
||||||
//EventMask (1L<<11)
|
//EventMask (1L<<11)
|
||||||
//DontPropagate (1L<<12)
|
//DontPropagate (1L<<12)
|
||||||
//Colormap (1L<<13)
|
//Colormap (1L<<13)
|
||||||
//Cursor (1L<<14)
|
//Cursor (1L<<14)
|
||||||
//BorderPixmap (1L<<2)
|
//BorderPixmap (1L<<2)
|
||||||
//BorderPixel (1L<<3)
|
//BorderPixel (1L<<3)
|
||||||
//BitGravity (1L<<4)
|
//BitGravity (1L<<4)
|
||||||
//WinGravity (1L<<5)
|
//WinGravity (1L<<5)
|
||||||
//BackingStore (1L<<6)
|
//BackingStore (1L<<6)
|
||||||
//BackingPlanes (1L<<7)
|
//BackingPlanes (1L<<7)
|
||||||
//BackingPixel (1L<<8)
|
//BackingPixel (1L<<8)
|
||||||
OverrideRedirect = 1<<9,
|
OverrideRedirect = 1<<9,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1229,22 +1229,22 @@ namespace OpenTK.Platform.X11
|
||||||
|
|
||||||
internal enum GXFunction
|
internal enum GXFunction
|
||||||
{
|
{
|
||||||
GXclear = 0x0, /* 0 */
|
GXclear = 0x0, /* 0 */
|
||||||
GXand = 0x1, /* src AND dst */
|
GXand = 0x1, /* src AND dst */
|
||||||
GXandReverse = 0x2, /* src AND NOT dst */
|
GXandReverse = 0x2, /* src AND NOT dst */
|
||||||
GXcopy = 0x3, /* src */
|
GXcopy = 0x3, /* src */
|
||||||
GXandInverted = 0x4, /* NOT src AND dst */
|
GXandInverted = 0x4, /* NOT src AND dst */
|
||||||
GXnoop = 0x5, /* dst */
|
GXnoop = 0x5, /* dst */
|
||||||
GXxor = 0x6, /* src XOR dst */
|
GXxor = 0x6, /* src XOR dst */
|
||||||
GXor = 0x7, /* src OR dst */
|
GXor = 0x7, /* src OR dst */
|
||||||
GXnor = 0x8, /* NOT src AND NOT dst */
|
GXnor = 0x8, /* NOT src AND NOT dst */
|
||||||
GXequiv = 0x9, /* NOT src XOR dst */
|
GXequiv = 0x9, /* NOT src XOR dst */
|
||||||
GXinvert = 0xa, /* NOT dst */
|
GXinvert = 0xa, /* NOT dst */
|
||||||
GXorReverse = 0xb, /* src OR NOT dst */
|
GXorReverse = 0xb, /* src OR NOT dst */
|
||||||
GXcopyInverted = 0xc, /* NOT src */
|
GXcopyInverted = 0xc, /* NOT src */
|
||||||
GXorInverted = 0xd, /* NOT src OR dst */
|
GXorInverted = 0xd, /* NOT src OR dst */
|
||||||
GXnand = 0xe, /* NOT src OR NOT dst */
|
GXnand = 0xe, /* NOT src OR NOT dst */
|
||||||
GXset = 0xf /* 1 */
|
GXset = 0xf /* 1 */
|
||||||
}
|
}
|
||||||
|
|
||||||
internal enum NetWindowManagerState
|
internal enum NetWindowManagerState
|
||||||
|
|
|
@ -17,11 +17,10 @@ using OpenTK.Graphics;
|
||||||
namespace OpenTK.Platform.X11
|
namespace OpenTK.Platform.X11
|
||||||
{
|
{
|
||||||
class X11GraphicsMode : IGraphicsMode
|
class X11GraphicsMode : IGraphicsMode
|
||||||
{
|
{ // Todo: Add custom visual selection algorithm, instead of ChooseFBConfig/ChooseVisual.
|
||||||
// Todo: Add custom visual selection algorithm, instead of ChooseFBConfig/ChooseVisual.
|
// It seems the Choose* methods do not take multisampling into account (at least on some
|
||||||
// It seems the Choose* methods do not take multisampling into account (at least on some
|
// drivers).
|
||||||
// drivers).
|
|
||||||
|
|
||||||
#region Constructors
|
#region Constructors
|
||||||
|
|
||||||
public X11GraphicsMode()
|
public X11GraphicsMode()
|
||||||
|
@ -141,14 +140,14 @@ namespace OpenTK.Platform.X11
|
||||||
visualAttributes.Add((int)GLXAttribute.ACCUM_RED_SIZE);
|
visualAttributes.Add((int)GLXAttribute.ACCUM_RED_SIZE);
|
||||||
visualAttributes.Add(accum.Red);
|
visualAttributes.Add(accum.Red);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (samples > 0)
|
if (samples > 0)
|
||||||
{
|
{
|
||||||
visualAttributes.Add((int)GLXAttribute.SAMPLE_BUFFERS);
|
visualAttributes.Add((int)GLXAttribute.SAMPLE_BUFFERS);
|
||||||
visualAttributes.Add(1);
|
visualAttributes.Add(1);
|
||||||
visualAttributes.Add((int)GLXAttribute.SAMPLES);
|
visualAttributes.Add((int)GLXAttribute.SAMPLES);
|
||||||
visualAttributes.Add(samples);
|
visualAttributes.Add(samples);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stereo)
|
if (stereo)
|
||||||
{
|
{
|
||||||
|
@ -240,14 +239,14 @@ namespace OpenTK.Platform.X11
|
||||||
visualAttributes.Add((int)GLXAttribute.ACCUM_RED_SIZE);
|
visualAttributes.Add((int)GLXAttribute.ACCUM_RED_SIZE);
|
||||||
visualAttributes.Add(accum.Red);
|
visualAttributes.Add(accum.Red);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (samples > 0)
|
if (samples > 0)
|
||||||
{
|
{
|
||||||
visualAttributes.Add((int)GLXAttribute.SAMPLE_BUFFERS);
|
visualAttributes.Add((int)GLXAttribute.SAMPLE_BUFFERS);
|
||||||
visualAttributes.Add(1);
|
visualAttributes.Add(1);
|
||||||
visualAttributes.Add((int)GLXAttribute.SAMPLES);
|
visualAttributes.Add((int)GLXAttribute.SAMPLES);
|
||||||
visualAttributes.Add(samples);
|
visualAttributes.Add(samples);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stereo)
|
if (stereo)
|
||||||
visualAttributes.Add((int)GLXAttribute.STEREO);
|
visualAttributes.Add((int)GLXAttribute.STEREO);
|
||||||
|
|
Loading…
Reference in a new issue