Run StyleCop on the smaller projects.

Also add a copy of the rules to the CrashDialog and Irc projects.
This commit is contained in:
RoosterDragon
2014-06-23 00:03:37 +01:00
parent e41791568d
commit 38617dc0a9
17 changed files with 786 additions and 105 deletions

View File

@@ -90,7 +90,7 @@ namespace OpenRA.Renderer.Sdl2
if (SDL.SDL_GL_ExtensionSupported("GL_EXT_framebuffer_object") == SDL.SDL_bool.SDL_FALSE)
{
ErrorHandler.WriteGraphicsLog("OpenRA requires the OpenGL extension GL_EXT_framebuffer_object.\n"
+"Please try updating your GPU driver to the latest version provided by the manufacturer.");
+ "Please try updating your GPU driver to the latest version provided by the manufacturer.");
throw new InvalidProgramException("Missing OpenGL extension GL_EXT_framebuffer_object. See graphics.log for details.");
}
@@ -200,13 +200,13 @@ namespace OpenRA.Renderer.Sdl2
ErrorHandler.CheckGlError();
}
public void GrabWindowMouseFocus()
public void GrabWindowMouseFocus()
{
SDL.SDL_SetWindowGrab(window, SDL.SDL_bool.SDL_TRUE);
}
public void ReleaseWindowMouseFocus()
{
{
SDL.SDL_SetWindowGrab(window, SDL.SDL_bool.SDL_FALSE);
}

View File

@@ -28,8 +28,7 @@ namespace OpenRA.Renderer.Sdl2
GL.BufferData(BufferTarget.ArrayBuffer,
new IntPtr(VertexSize * size),
new T[size],
BufferUsageHint.DynamicDraw
);
BufferUsageHint.DynamicDraw);
ErrorHandler.CheckGlError();
}