Browse Source

should fix gcc warning about passing a const char * to SDL_putenv

Bill Meltsner 15 years ago
parent
commit
60133f8d9a
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/modules/graphics/opengl/Graphics.cpp

+ 1 - 2
src/modules/graphics/opengl/Graphics.cpp

@@ -38,8 +38,7 @@ namespace opengl
 		currentMode.height = 0;
 
 		// Window should be centered.
-		char * center = "SDL_VIDEO_CENTERED=center";
-		SDL_putenv(center);
+		SDL_putenv(const_cast<char *>("SDL_VIDEO_CENTERED=center"));
 
 		if(SDL_InitSubSystem(SDL_INIT_VIDEO) < 0)
 			throw Exception(SDL_GetError());