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

This commit is contained in:
Bill Meltsner
2010-03-22 23:57:28 -05:00
parent 012ce3a585
commit 60133f8d9a
+1 -2
View File
@@ -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());