mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-22 20:15:30 +00:00
Merge pull request #619 from Nihlus/cleanup-8-semicolon-spacing
[Cleanup] Semicolon spacing
This commit is contained in:
commit
fc98b8ea4d
|
@ -110,7 +110,7 @@ namespace Bind
|
||||||
}
|
}
|
||||||
|
|
||||||
// New enums namespace (don't use a nested class).
|
// 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 DelegatesClass = "Delegates";
|
||||||
public string ImportsClass = "Core";
|
public string ImportsClass = "Core";
|
||||||
|
|
|
@ -125,16 +125,16 @@ namespace OpenTK.X11
|
||||||
//attributeList.Add(Buffers);
|
//attributeList.Add(Buffers);
|
||||||
|
|
||||||
attributeList.Add((int)GLXAttribute.ACCUM_RED_SIZE);
|
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((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((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((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);
|
attributeList.Add((int)GLXAttribute.NONE);
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,7 @@ namespace OpenTK.Audio.OpenAL
|
||||||
|
|
||||||
output.Gain = 0.32f; // todo, currently default
|
output.Gain = 0.32f; // todo, currently default
|
||||||
output.GainHF = 0.89f; // 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.LFReference = input.LFReference;
|
||||||
output.HFReference = input.HFReference;
|
output.HFReference = input.HFReference;
|
||||||
|
|
|
@ -216,7 +216,7 @@ namespace OpenTK.Input
|
||||||
case 1: position = HatPosition.Up; break;
|
case 1: position = HatPosition.Up; break;
|
||||||
case 2: position = HatPosition.Right; break;
|
case 2: position = HatPosition.Right; break;
|
||||||
case 3: position = HatPosition.UpRight; 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 6: position = HatPosition.DownRight; break;
|
||||||
case 8: position = HatPosition.Left; break;
|
case 8: position = HatPosition.Left; break;
|
||||||
case 9: position = HatPosition.UpLeft; break;
|
case 9: position = HatPosition.UpLeft; break;
|
||||||
|
|
|
@ -829,8 +829,8 @@ namespace OpenTK
|
||||||
/// </para>
|
/// </para>
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
event EventHandler<KeyPressEventArgs> INativeWindow.KeyPress {
|
event EventHandler<KeyPressEventArgs> INativeWindow.KeyPress {
|
||||||
add { throw new NotSupportedException ();}
|
add { throw new NotSupportedException (); }
|
||||||
remove { throw new NotSupportedException ();}
|
remove { throw new NotSupportedException (); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual int Width {
|
public virtual int Width {
|
||||||
|
|
|
@ -1165,7 +1165,7 @@ namespace OpenTK.Platform.MacOS
|
||||||
[DllImport(hid)]
|
[DllImport(hid)]
|
||||||
public static extern IOReturn IOHIDManagerOpen(
|
public static extern IOReturn IOHIDManagerOpen(
|
||||||
IOHIDManagerRef manager,
|
IOHIDManagerRef manager,
|
||||||
IOOptionBits options) ;
|
IOOptionBits options);
|
||||||
|
|
||||||
[DllImport(hid)]
|
[DllImport(hid)]
|
||||||
public static extern IOReturn IOHIDDeviceOpen(
|
public static extern IOReturn IOHIDDeviceOpen(
|
||||||
|
@ -1234,7 +1234,7 @@ namespace OpenTK.Platform.MacOS
|
||||||
[DllImport(hid)]
|
[DllImport(hid)]
|
||||||
public static extern double IOHIDValueGetScaledValue(
|
public static extern double IOHIDValueGetScaledValue(
|
||||||
IOHIDValueRef @value,
|
IOHIDValueRef @value,
|
||||||
IOHIDValueScaleType type) ;
|
IOHIDValueScaleType type);
|
||||||
|
|
||||||
[DllImport(hid)]
|
[DllImport(hid)]
|
||||||
public static extern IOHIDElementType IOHIDElementGetType(
|
public static extern IOHIDElementType IOHIDElementGetType(
|
||||||
|
|
|
@ -379,11 +379,11 @@ namespace OpenTK.Platform.X11
|
||||||
|
|
||||||
private byte nhsync; /* Number of horiz sync ranges */
|
private byte nhsync; /* Number of horiz sync ranges */
|
||||||
/*XF86VidModeSyncRange* */
|
/*XF86VidModeSyncRange* */
|
||||||
private IntPtr hsync;/* Horizontal sync ranges */
|
private IntPtr hsync; /* Horizontal sync ranges */
|
||||||
|
|
||||||
private byte nvsync; /* Number of vert sync ranges */
|
private byte nvsync; /* Number of vert sync ranges */
|
||||||
/*XF86VidModeSyncRange* */
|
/*XF86VidModeSyncRange* */
|
||||||
private IntPtr vsync;/* Vertical sync ranges */
|
private IntPtr vsync; /* Vertical sync ranges */
|
||||||
}
|
}
|
||||||
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
|
@ -1467,7 +1467,7 @@ XF86VidModeGetGammaRampSize(
|
||||||
{
|
{
|
||||||
//ptr = XRRSizes(dpy, screen, &nsizes);
|
//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)
|
if (count == 0)
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<!-- Spacing rules -->
|
<!-- Spacing rules -->
|
||||||
<Rule Id="SA1000" Action="Error" /> <!-- Keywords must be spaced correctly -->
|
<Rule Id="SA1000" Action="Error" /> <!-- Keywords must be spaced correctly -->
|
||||||
<Rule Id="SA1001" Action="Error" /> <!-- Commas 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="SA1003" Action="None" /> <!-- Symbols must be spaced correctly -->
|
||||||
<Rule Id="SA1004" Action="None" /> <!-- Documentation lines must begin with single space -->
|
<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 -->
|
<Rule Id="SA1005" Action="None" /> <!-- Single line comments must begin with single space -->
|
||||||
|
|
Loading…
Reference in a new issue