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

View file

@ -1599,7 +1599,7 @@ namespace OpenTK.Platform.MacOS
Key.Unknown, /* Volume Up */
Key.Unknown, /* Volume Down */
Key.CapsLock, /* Locking Caps Lock */
Key.NumLock , /* Locking Num Lock */
Key.NumLock, /* Locking Num Lock */
Key.ScrollLock, /* Locking Scroll Lock */
Key.KeypadDecimal, /* Keypad Comma */
Key.Unknown, /* Keypad Equal Sign for AS/400 */

View file

@ -81,28 +81,28 @@ namespace OpenTK.Platform.MacOS
[DllImport(lib, EntryPoint = "CGDisplayBounds")]
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);
[DllImport(lib,EntryPoint="CGDisplayPixelsHigh")]
[DllImport(lib, EntryPoint="CGDisplayPixelsHigh")]
internal static extern int DisplayPixelsHigh(IntPtr display);
[DllImport(lib,EntryPoint="CGDisplayCurrentMode")]
[DllImport(lib, EntryPoint="CGDisplayCurrentMode")]
internal static extern IntPtr DisplayCurrentMode(IntPtr display);
[DllImport(lib,EntryPoint="CGDisplayCapture")]
[DllImport(lib, EntryPoint="CGDisplayCapture")]
internal static extern CGDisplayErr DisplayCapture(IntPtr display);
[DllImport(lib,EntryPoint="CGCaptureAllDisplays")]
[DllImport(lib, EntryPoint="CGCaptureAllDisplays")]
internal static extern CGDisplayErr CaptureAllDisplays();
[DllImport(lib,EntryPoint="CGShieldingWindowLevel")]
[DllImport(lib, EntryPoint="CGShieldingWindowLevel")]
internal static extern uint ShieldingWindowLevel();
[DllImport(lib,EntryPoint="CGDisplayRelease")]
[DllImport(lib, EntryPoint="CGDisplayRelease")]
internal static extern CGDisplayErr DisplayRelease(IntPtr display);
[DllImport(lib,EntryPoint="CGReleaseAllDisplays")]
[DllImport(lib, EntryPoint="CGReleaseAllDisplays")]
internal static extern CGDisplayErr DisplayReleaseAll();
[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,
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);
// 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;
private readonly Dictionary<int, int> axes =
new Dictionary<int,int>();
new Dictionary<int, int>();
private readonly Dictionary<int, int> buttons =
new Dictionary<int, int>();

View file

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