mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
should fix gcc warning about passing a const char * to SDL_putenv
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user