From cf1744f779b38bdc3e5119ab831037ff3228a898 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 21:41:08 +0300 Subject: Add option to allow screensaver. (by default screensaver disabled) --- src/client.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 7168f0cec..5dd417670 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -355,6 +355,11 @@ void Client::gameInit() putenv("SDL_VIDEO_CENTERED=0"); #endif + if (config.getBoolValue("allowscreensaver")) + putenv("SDL_VIDEO_ALLOW_SCREENSAVER=1"); + else + putenv("SDL_VIDEO_ALLOW_SCREENSAVER=0"); + chatLogger = new ChatLogger; if (mOptions.chatLogDir == "") chatLogger->setBaseLogDir(mLocalDataDir + std::string("/logs/")); -- cgit v1.2.3-60-g2f50