diff --git a/OpenRA.Renderer.Cg/GraphicsDevice.cs b/OpenRA.Renderer.Cg/GraphicsDevice.cs index 0b057298fb..7891190a6d 100755 --- a/OpenRA.Renderer.Cg/GraphicsDevice.cs +++ b/OpenRA.Renderer.Cg/GraphicsDevice.cs @@ -138,7 +138,7 @@ namespace OpenRA.Renderer.Cg MouseButton lastButtonBits = (MouseButton)0; - static MouseButton MakeButton( byte b ) + MouseButton MakeButton( byte b ) { return b == Sdl.SDL_BUTTON_LEFT ? MouseButton.Left : b == Sdl.SDL_BUTTON_RIGHT ? MouseButton.Right @@ -148,7 +148,7 @@ namespace OpenRA.Renderer.Cg : 0; } - static Modifiers MakeModifiers( int raw ) + Modifiers MakeModifiers( int raw ) { return ( ( raw & Sdl.KMOD_ALT ) != 0 ? Modifiers.Alt : 0 ) | ( ( raw & Sdl.KMOD_CTRL ) != 0 ? Modifiers.Ctrl : 0 ) diff --git a/OpenRA.Renderer.Gl/GraphicsDevice.cs b/OpenRA.Renderer.Gl/GraphicsDevice.cs index f5de45c2d5..788a76f832 100755 --- a/OpenRA.Renderer.Gl/GraphicsDevice.cs +++ b/OpenRA.Renderer.Gl/GraphicsDevice.cs @@ -134,7 +134,7 @@ namespace OpenRA.Renderer.Glsl MouseButton lastButtonBits = (MouseButton)0; - static MouseButton MakeButton( byte b ) + MouseButton MakeButton( byte b ) { return b == Sdl.SDL_BUTTON_LEFT ? MouseButton.Left : b == Sdl.SDL_BUTTON_RIGHT ? MouseButton.Right @@ -144,7 +144,7 @@ namespace OpenRA.Renderer.Glsl : 0; } - static Modifiers MakeModifiers( int raw ) + Modifiers MakeModifiers( int raw ) { return ( ( raw & Sdl.KMOD_ALT ) != 0 ? Modifiers.Alt : 0 ) | ( ( raw & Sdl.KMOD_CTRL ) != 0 ? Modifiers.Ctrl : 0 )