mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +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;
|
currentMode.height = 0;
|
||||||
|
|
||||||
// Window should be centered.
|
// Window should be centered.
|
||||||
char * center = "SDL_VIDEO_CENTERED=center";
|
SDL_putenv(const_cast<char *>("SDL_VIDEO_CENTERED=center"));
|
||||||
SDL_putenv(center);
|
|
||||||
|
|
||||||
if(SDL_InitSubSystem(SDL_INIT_VIDEO) < 0)
|
if(SDL_InitSubSystem(SDL_INIT_VIDEO) < 0)
|
||||||
throw Exception(SDL_GetError());
|
throw Exception(SDL_GetError());
|
||||||
|
|||||||
Reference in New Issue
Block a user