mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-06 10:00:44 +00:00
Merge pull request #620 from Nihlus/cleanup-9-symbol-spacing
[Cleanup] Symbol Spacing
This commit is contained in:
commit
254f7e9bfb
|
@ -20,7 +20,6 @@ namespace Bind.Structures
|
||||||
/// Creates a new Parameter without type and name.
|
/// Creates a new Parameter without type and name.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Parameter()
|
public Parameter()
|
||||||
:base()
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -118,8 +118,8 @@ namespace OpenTK
|
||||||
// or [StructLayout(LayoutKind.Explicit)]
|
// or [StructLayout(LayoutKind.Explicit)]
|
||||||
private static bool CheckStructLayoutAttribute(Type type)
|
private static bool CheckStructLayoutAttribute(Type type)
|
||||||
{
|
{
|
||||||
StructLayoutAttribute[] attr = (StructLayoutAttribute[])
|
StructLayoutAttribute[] attr =
|
||||||
type.GetCustomAttributes(typeof(StructLayoutAttribute), true);
|
(StructLayoutAttribute[])type.GetCustomAttributes(typeof(StructLayoutAttribute), true);
|
||||||
|
|
||||||
if ((attr == null) ||
|
if ((attr == null) ||
|
||||||
(attr != null && attr.Length > 0 && attr[0].Value != LayoutKind.Explicit && attr[0].Pack != 1))
|
(attr != null && attr.Length > 0 && attr[0].Value != LayoutKind.Explicit && attr[0].Pack != 1))
|
||||||
|
|
|
@ -14,8 +14,8 @@ namespace OpenTK.Platform.Android
|
||||||
/// <see cref="M:OpenTK.Platform.Android.AndroidGraphicsMode(Javax.Microedition.Khronos.Egl.EGLDisplay,int,OpenTK.Graphics.ColorFormat,int,int,int,int,bool)" />
|
/// <see cref="M:OpenTK.Platform.Android.AndroidGraphicsMode(Javax.Microedition.Khronos.Egl.EGLDisplay,int,OpenTK.Graphics.ColorFormat,int,int,int,int,bool)" />
|
||||||
/// constructors (pass null to the display parameter for lazy initialization)
|
/// constructors (pass null to the display parameter for lazy initialization)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AndroidGraphicsMode(ColorFormat color, int depth, int stencil, int samples, int buffers, bool stereo) :
|
public AndroidGraphicsMode(ColorFormat color, int depth, int stencil, int samples, int buffers, bool stereo)
|
||||||
this(null, 1, color, depth, stencil, samples, buffers, stereo)
|
: this(null, 1, color, depth, stencil, samples, buffers, stereo)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,8 +30,8 @@ namespace OpenTK.Platform.Android
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <param name="majorVersion">Requested OpenGL version (1 or 2)</param>
|
/// <param name="majorVersion">Requested OpenGL version (1 or 2)</param>
|
||||||
/// <param name="mode">GraphicsMode to copy values from.</param>
|
/// <param name="mode">GraphicsMode to copy values from.</param>
|
||||||
public AndroidGraphicsMode(object display_ignored, int majorVersion, GraphicsMode mode) :
|
public AndroidGraphicsMode(object display_ignored, int majorVersion, GraphicsMode mode)
|
||||||
this(display_ignored, majorVersion, mode.ColorFormat, mode.Depth, mode.Stencil, mode.Samples, mode.Buffers, mode.Stereo)
|
: this(display_ignored, majorVersion, mode.ColorFormat, mode.Depth, mode.Stencil, mode.Samples, mode.Buffers, mode.Stereo)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<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="Error" /> <!-- 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="Error" /> <!-- 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 -->
|
||||||
<Rule Id="SA1006" Action="Error" /> <!-- Preprocessor keywords must not be preceded by space -->
|
<Rule Id="SA1006" Action="Error" /> <!-- Preprocessor keywords must not be preceded by space -->
|
||||||
|
|
Loading…
Reference in a new issue