Correct comma spacing in OpenTK, excluding generated files.

This commit is contained in:
Jarl Gullberg 2017-07-28 12:43:10 +02:00
parent e4d8be5658
commit cab25daf16
No known key found for this signature in database
GPG key ID: 750FF6F6BDA72D23
7 changed files with 17 additions and 17 deletions

View file

@ -435,7 +435,7 @@ namespace OpenTK.Audio.OpenAL
/// <param name="buffer">a buffer, which must be large enough to accommodate the number of samples.</param> /// <param name="buffer">a buffer, which must be large enough to accommodate the number of samples.</param>
/// <param name="samples">the number of samples to be retrieved.</param> /// <param name="samples">the number of samples to be retrieved.</param>
[CLSCompliant(false)] [CLSCompliant(false)]
public static void CaptureSamples<T>(IntPtr device, T[, ,] buffer, int samples) public static void CaptureSamples<T>(IntPtr device, T[,,] buffer, int samples)
where T : struct where T : struct
{ {
CaptureSamples(device, ref buffer[0, 0, 0], samples); CaptureSamples(device, ref buffer[0, 0, 0], samples);

View file

@ -178,7 +178,7 @@ namespace OpenTK
/// <param name="type">An instance of the type to check.</param> /// <param name="type">An instance of the type to check.</param>
/// <returns>True if T is blittable; false otherwise.</returns> /// <returns>True if T is blittable; false otherwise.</returns>
[CLSCompliant(false)] [CLSCompliant(false)]
public static bool Check<T>(T[, ,] type) public static bool Check<T>(T[,,] type)
{ {
return BlittableValueType<T>.Check(); return BlittableValueType<T>.Check();
} }
@ -255,7 +255,7 @@ namespace OpenTK
/// <returns>An integer, specifying the size of the type in bytes.</returns> /// <returns>An integer, specifying the size of the type in bytes.</returns>
/// <exception cref="System.ArgumentException">Occurs when type is not blittable.</exception> /// <exception cref="System.ArgumentException">Occurs when type is not blittable.</exception>
[CLSCompliant(false)] [CLSCompliant(false)]
public static int StrideOf<T>(T[, ,] type) public static int StrideOf<T>(T[,,] type)
{ {
if (!Check(type)) if (!Check(type))
{ {

View file

@ -1022,7 +1022,7 @@ namespace OpenTK.Platform.MacOS
} }
else else
{ {
float f1 = (float)x; float f1 = (float)x;
float f2 = (float)y; float f2 = (float)y;
p.X.Value = *(IntPtr *)&f1; p.X.Value = *(IntPtr *)&f1;
p.Y.Value = *(IntPtr *)&f2; p.Y.Value = *(IntPtr *)&f2;
@ -1599,7 +1599,7 @@ namespace OpenTK.Platform.MacOS
Key.Unknown, /* Volume Up */ Key.Unknown, /* Volume Up */
Key.Unknown, /* Volume Down */ Key.Unknown, /* Volume Down */
Key.CapsLock, /* Locking Caps Lock */ Key.CapsLock, /* Locking Caps Lock */
Key.NumLock , /* Locking Num Lock */ Key.NumLock, /* Locking Num Lock */
Key.ScrollLock, /* Locking Scroll Lock */ Key.ScrollLock, /* Locking Scroll Lock */
Key.KeypadDecimal, /* Keypad Comma */ Key.KeypadDecimal, /* Keypad Comma */
Key.Unknown, /* Keypad Equal Sign for AS/400 */ Key.Unknown, /* Keypad Equal Sign for AS/400 */

View file

@ -81,28 +81,28 @@ namespace OpenTK.Platform.MacOS
[DllImport(lib, EntryPoint = "CGDisplayBounds")] [DllImport(lib, EntryPoint = "CGDisplayBounds")]
private unsafe static extern void DisplayBounds(out NSRect rect, IntPtr display); private unsafe static extern void DisplayBounds(out NSRect rect, IntPtr display);
[DllImport(lib,EntryPoint="CGDisplayPixelsWide")] [DllImport(lib, EntryPoint="CGDisplayPixelsWide")]
internal static extern int DisplayPixelsWide(IntPtr display); internal static extern int DisplayPixelsWide(IntPtr display);
[DllImport(lib,EntryPoint="CGDisplayPixelsHigh")] [DllImport(lib, EntryPoint="CGDisplayPixelsHigh")]
internal static extern int DisplayPixelsHigh(IntPtr display); internal static extern int DisplayPixelsHigh(IntPtr display);
[DllImport(lib,EntryPoint="CGDisplayCurrentMode")] [DllImport(lib, EntryPoint="CGDisplayCurrentMode")]
internal static extern IntPtr DisplayCurrentMode(IntPtr display); internal static extern IntPtr DisplayCurrentMode(IntPtr display);
[DllImport(lib,EntryPoint="CGDisplayCapture")] [DllImport(lib, EntryPoint="CGDisplayCapture")]
internal static extern CGDisplayErr DisplayCapture(IntPtr display); internal static extern CGDisplayErr DisplayCapture(IntPtr display);
[DllImport(lib,EntryPoint="CGCaptureAllDisplays")] [DllImport(lib, EntryPoint="CGCaptureAllDisplays")]
internal static extern CGDisplayErr CaptureAllDisplays(); internal static extern CGDisplayErr CaptureAllDisplays();
[DllImport(lib,EntryPoint="CGShieldingWindowLevel")] [DllImport(lib, EntryPoint="CGShieldingWindowLevel")]
internal static extern uint ShieldingWindowLevel(); internal static extern uint ShieldingWindowLevel();
[DllImport(lib,EntryPoint="CGDisplayRelease")] [DllImport(lib, EntryPoint="CGDisplayRelease")]
internal static extern CGDisplayErr DisplayRelease(IntPtr display); internal static extern CGDisplayErr DisplayRelease(IntPtr display);
[DllImport(lib,EntryPoint="CGReleaseAllDisplays")] [DllImport(lib, EntryPoint="CGReleaseAllDisplays")]
internal static extern CGDisplayErr DisplayReleaseAll(); internal static extern CGDisplayErr DisplayReleaseAll();
[DllImport(lib, EntryPoint = "CGDisplayAvailableModes")] [DllImport(lib, EntryPoint = "CGDisplayAvailableModes")]

View file

@ -59,7 +59,7 @@ namespace OpenTK.Platform.Windows
public GraphicsMode SelectGraphicsMode(ColorFormat color, int depth, int stencil, int samples, public GraphicsMode SelectGraphicsMode(ColorFormat color, int depth, int stencil, int samples,
ColorFormat accum, int buffers, bool stereo) ColorFormat accum, int buffers, bool stereo)
{ {
GraphicsMode mode = new GraphicsMode(color, depth, stencil, samples,accum, buffers, stereo); GraphicsMode mode = new GraphicsMode(color, depth, stencil, samples, accum, buffers, stereo);
GraphicsMode created_mode = ChoosePixelFormatARB(Device, mode); GraphicsMode created_mode = ChoosePixelFormatARB(Device, mode);
// If ChoosePixelFormatARB failed, iterate through all acceleration types in turn (ICD, MCD, None) // If ChoosePixelFormatARB failed, iterate through all acceleration types in turn (ICD, MCD, None)

View file

@ -51,7 +51,7 @@ namespace OpenTK.Platform.Windows
internal readonly int XInputIndex; internal readonly int XInputIndex;
private readonly Dictionary<int, int> axes = private readonly Dictionary<int, int> axes =
new Dictionary<int,int>(); new Dictionary<int, int>();
private readonly Dictionary<int, int> buttons = private readonly Dictionary<int, int> buttons =
new Dictionary<int, int>(); new Dictionary<int, int>();

View file

@ -1171,7 +1171,7 @@ XF86VidModeGetGammaRampSize(
XF86MenuKB = 0x1008ff65, XF86MenuKB = 0x1008ff65,
XF86Calculator = 0x1008ff1d, XF86Calculator = 0x1008ff1d,
XF86Sleep = 0x1008ff2f, XF86Sleep = 0x1008ff2f,
XF86WakeUp = 0x1008ff2b , XF86WakeUp = 0x1008ff2b,
XF86Explorer = 0x1008ff5d, XF86Explorer = 0x1008ff5d,
XF86Send = 0x1008ff7b, XF86Send = 0x1008ff7b,
XF86Xfer = 0x1008ff8a, XF86Xfer = 0x1008ff8a,
@ -1190,7 +1190,7 @@ XF86VidModeGetGammaRampSize(
XF86Favorites = 0x1008ff30, XF86Favorites = 0x1008ff30,
XF86MyComputer = 0x1008ff33, XF86MyComputer = 0x1008ff33,
XF86Back = 0x1008ff26, XF86Back = 0x1008ff26,
XF86Forward = 0x1008ff27 , XF86Forward = 0x1008ff27,
XF86Eject = 0x1008ff2c, XF86Eject = 0x1008ff2c,
XF86AudioPlay = 0x1008ff14, XF86AudioPlay = 0x1008ff14,
XF86AudioStop = 0x1008ff15, XF86AudioStop = 0x1008ff15,