From 250aa178c51c0bc9ed95923c504ad4430f67c2eb Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 22 Feb 2010 21:36:04 +1300 Subject: [PATCH] avoid using SDL_putenv() since it's missing on some platforms (osx) --- OpenRa.Gl/GraphicsDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRa.Gl/GraphicsDevice.cs b/OpenRa.Gl/GraphicsDevice.cs index dd36b3db38..6436546a28 100644 --- a/OpenRa.Gl/GraphicsDevice.cs +++ b/OpenRa.Gl/GraphicsDevice.cs @@ -60,7 +60,7 @@ namespace OpenRa.GlRenderer Sdl.SDL_GL_SetAttribute(Sdl.SDL_GL_BLUE_SIZE, 8); Sdl.SDL_GL_SetAttribute(Sdl.SDL_GL_ALPHA_SIZE, 8); - Sdl.SDL_putenv( "SDL_VIDEO_WINDOW_POS=0,0" ); + Environment.SetEnvironmentVariable("SDL_VIDEO_WINDOW_POS", "0,0"); surf = Sdl.SDL_SetVideoMode(width, height, 0, Sdl.SDL_NOFRAME | Sdl.SDL_OPENGL | (windowed ? 0 : Sdl.SDL_FULLSCREEN)); Sdl.SDL_WM_SetCaption("OpenRA", "OpenRA");