From a79cc0a0e031bce160e82dbb5e49008a05a2c945 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 28 Jul 2011 23:12:03 +1200 Subject: [PATCH] drop unused parameter on IGraphicsDevice.Clear() --- OpenRA.FileFormats/Graphics/IGraphicsDevice.cs | 2 +- OpenRA.Game/Graphics/Renderer.cs | 2 +- OpenRA.Renderer.Cg/GraphicsDevice.cs | 2 +- OpenRA.Renderer.Gl/GraphicsDevice.cs | 2 +- OpenRA.Renderer.Null/NullGraphicsDevice.cs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs b/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs index a03041e12b..a4f42568a5 100755 --- a/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs +++ b/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs @@ -42,7 +42,7 @@ namespace OpenRA.FileFormats.Graphics Size WindowSize { get; } int GpuMemoryUsed { get; } - void Clear( Color color ); + void Clear(); void Present(); void PumpInput(IInputHandler inputHandler); diff --git a/OpenRA.Game/Graphics/Renderer.cs b/OpenRA.Game/Graphics/Renderer.cs index 441396364b..1c86a0b110 100644 --- a/OpenRA.Game/Graphics/Renderer.cs +++ b/OpenRA.Game/Graphics/Renderer.cs @@ -75,7 +75,7 @@ namespace OpenRA.Graphics public void BeginFrame(float2 scroll, float zoom) { - device.Clear(Color.Black); + device.Clear(); WorldLineRenderer.LineWidth = zoom; float2 r1 = new float2(2f/Resolution.Width, -2f/Resolution.Height); diff --git a/OpenRA.Renderer.Cg/GraphicsDevice.cs b/OpenRA.Renderer.Cg/GraphicsDevice.cs index d377998d02..9ddc6816c2 100755 --- a/OpenRA.Renderer.Cg/GraphicsDevice.cs +++ b/OpenRA.Renderer.Cg/GraphicsDevice.cs @@ -99,7 +99,7 @@ namespace OpenRA.Renderer.Cg ErrorHandler.CheckGlError(); } - public void Clear( Color c ) + public void Clear() { Gl.glClearColor( 0, 0, 0, 0 ); ErrorHandler.CheckGlError(); diff --git a/OpenRA.Renderer.Gl/GraphicsDevice.cs b/OpenRA.Renderer.Gl/GraphicsDevice.cs index c95780e4f5..21efffde4a 100755 --- a/OpenRA.Renderer.Gl/GraphicsDevice.cs +++ b/OpenRA.Renderer.Gl/GraphicsDevice.cs @@ -79,7 +79,7 @@ namespace OpenRA.Renderer.Glsl ErrorHandler.CheckGlError(); } - public void Clear( Color c ) + public void Clear() { Gl.glClearColor( 0, 0, 0, 0 ); ErrorHandler.CheckGlError(); diff --git a/OpenRA.Renderer.Null/NullGraphicsDevice.cs b/OpenRA.Renderer.Null/NullGraphicsDevice.cs index d85e0828c8..34e53044ab 100644 --- a/OpenRA.Renderer.Null/NullGraphicsDevice.cs +++ b/OpenRA.Renderer.Null/NullGraphicsDevice.cs @@ -38,7 +38,7 @@ namespace OpenRA.Renderer.Null public void EnableScissor(int left, int top, int width, int height) { } public void DisableScissor() { } - public void Clear(Color c) { } + public void Clear() { } public void Present() { } public void PumpInput(IInputHandler ih)