From bfc7013ba4b2780ec879c896720fb8bf92a875cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 3 Aug 2015 14:12:17 +0200 Subject: [PATCH] avoid magic numbers --- OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs b/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs index dfa9d41970..a8743169ef 100644 --- a/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs +++ b/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs @@ -94,7 +94,7 @@ namespace OpenRA.Platforms.Default GL.EnableClientState(ArrayCap.TextureCoordArray); ErrorHandler.CheckGlError(); - SDL.SDL_SetModState(0); + SDL.SDL_SetModState(SDL.SDL_Keymod.KMOD_NONE); input = new Sdl2Input(); } @@ -114,10 +114,10 @@ namespace OpenRA.Platforms.Default { var c = cursor as SDL2HardwareCursor; if (c == null) - SDL.SDL_ShowCursor(0); + SDL.SDL_ShowCursor((int)SDL.SDL_bool.SDL_FALSE); else { - SDL.SDL_ShowCursor(1); + SDL.SDL_ShowCursor((int)SDL.SDL_bool.SDL_TRUE); SDL.SDL_SetCursor(c.Cursor); } }