Merge pull request #619 from Nihlus/cleanup-8-semicolon-spacing

[Cleanup] Semicolon spacing
This commit is contained in:
Jarl Gullberg 2017-08-04 12:30:10 +02:00 committed by GitHub
commit fc98b8ea4d
8 changed files with 15 additions and 15 deletions

View file

@ -110,7 +110,7 @@ namespace Bind
}
// New enums namespace (don't use a nested class).
public string EnumsNamespace = null;// = "Enums";
public string EnumsNamespace = null; // = "Enums";
public string DelegatesClass = "Delegates";
public string ImportsClass = "Core";

View file

@ -125,16 +125,16 @@ namespace OpenTK.X11
//attributeList.Add(Buffers);
attributeList.Add((int)GLXAttribute.ACCUM_RED_SIZE);
attributeList.Add(mode.AccumulatorFormat.Red / 4);// TODO support 16-bit
attributeList.Add(mode.AccumulatorFormat.Red / 4); // TODO support 16-bit
attributeList.Add((int)GLXAttribute.ACCUM_GREEN_SIZE);
attributeList.Add(mode.AccumulatorFormat.Green / 4);// TODO support 16-bit
attributeList.Add(mode.AccumulatorFormat.Green / 4); // TODO support 16-bit
attributeList.Add((int)GLXAttribute.ACCUM_BLUE_SIZE);
attributeList.Add(mode.AccumulatorFormat.Blue / 4);// TODO support 16-bit
attributeList.Add(mode.AccumulatorFormat.Blue / 4); // TODO support 16-bit
attributeList.Add((int)GLXAttribute.ACCUM_ALPHA_SIZE);
attributeList.Add(mode.AccumulatorFormat.Alpha / 4);// TODO support 16-bit
attributeList.Add(mode.AccumulatorFormat.Alpha / 4); // TODO support 16-bit
attributeList.Add((int)GLXAttribute.NONE);

View file

@ -122,7 +122,7 @@ namespace OpenTK.Audio.OpenAL
output.Gain = 0.32f; // todo, currently default
output.GainHF = 0.89f; // todo, currently default
output.GainLF = 1f;// todo, currently default
output.GainLF = 1f; // todo, currently default
output.LFReference = input.LFReference;
output.HFReference = input.HFReference;

View file

@ -216,7 +216,7 @@ namespace OpenTK.Input
case 1: position = HatPosition.Up; break;
case 2: position = HatPosition.Right; break;
case 3: position = HatPosition.UpRight; break;
case 4: position = HatPosition.Down ; break;
case 4: position = HatPosition.Down; break;
case 6: position = HatPosition.DownRight; break;
case 8: position = HatPosition.Left; break;
case 9: position = HatPosition.UpLeft; break;

View file

@ -829,8 +829,8 @@ namespace OpenTK
/// </para>
/// </remarks>
event EventHandler<KeyPressEventArgs> INativeWindow.KeyPress {
add { throw new NotSupportedException ();}
remove { throw new NotSupportedException ();}
add { throw new NotSupportedException (); }
remove { throw new NotSupportedException (); }
}
public virtual int Width {

View file

@ -1165,7 +1165,7 @@ namespace OpenTK.Platform.MacOS
[DllImport(hid)]
public static extern IOReturn IOHIDManagerOpen(
IOHIDManagerRef manager,
IOOptionBits options) ;
IOOptionBits options);
[DllImport(hid)]
public static extern IOReturn IOHIDDeviceOpen(
@ -1234,7 +1234,7 @@ namespace OpenTK.Platform.MacOS
[DllImport(hid)]
public static extern double IOHIDValueGetScaledValue(
IOHIDValueRef @value,
IOHIDValueScaleType type) ;
IOHIDValueScaleType type);
[DllImport(hid)]
public static extern IOHIDElementType IOHIDElementGetType(

View file

@ -379,11 +379,11 @@ namespace OpenTK.Platform.X11
private byte nhsync; /* Number of horiz sync ranges */
/*XF86VidModeSyncRange* */
private IntPtr hsync;/* Horizontal sync ranges */
private IntPtr hsync; /* Horizontal sync ranges */
private byte nvsync; /* Number of vert sync ranges */
/*XF86VidModeSyncRange* */
private IntPtr vsync;/* Vertical sync ranges */
private IntPtr vsync; /* Vertical sync ranges */
}
[StructLayout(LayoutKind.Sequential)]
@ -1467,7 +1467,7 @@ XF86VidModeGetGammaRampSize(
{
//ptr = XRRSizes(dpy, screen, &nsizes);
byte* data = (byte*)XRRSizes(dpy, screen, &count);//(byte*)ptr;
byte* data = (byte*)XRRSizes(dpy, screen, &count); //(byte*)ptr;
if (count == 0)
{
return null;

View file

@ -8,7 +8,7 @@
<!-- Spacing rules -->
<Rule Id="SA1000" Action="Error" /> <!-- Keywords must be spaced correctly -->
<Rule Id="SA1001" Action="Error" /> <!-- Commas must be spaced correctly -->
<Rule Id="SA1002" Action="None" /> <!-- Semicolons must be spaced correctly -->
<Rule Id="SA1002" Action="Error" /> <!-- Semicolons must be spaced correctly -->
<Rule Id="SA1003" Action="None" /> <!-- Symbols must be spaced correctly -->
<Rule Id="SA1004" Action="None" /> <!-- Documentation lines must begin with single space -->
<Rule Id="SA1005" Action="None" /> <!-- Single line comments must begin with single space -->