From 10f73a88a374a250d192b02d783b5de3fe6e4aa6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 Sep 2017 01:57:39 +0300 Subject: Fix option for enable/disable screensaver in SDL 2. --- src/progs/dyecmd/client.cpp | 1 + src/progs/manaplus/client.cpp | 1 + 2 files changed, 2 insertions(+) (limited to 'src/progs') diff --git a/src/progs/dyecmd/client.cpp b/src/progs/dyecmd/client.cpp index eb40fd9c5..b071eaf73 100644 --- a/src/progs/dyecmd/client.cpp +++ b/src/progs/dyecmd/client.cpp @@ -269,6 +269,7 @@ void Client::gameInit() #endif // defined(USE_OPENGL) updateEnv(); + SDL::allowScreenSaver(config.getBoolValue("allowscreensaver")); initGraphics(); #ifndef WIN32 diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp index 33d099678..41afa2fe5 100644 --- a/src/progs/manaplus/client.cpp +++ b/src/progs/manaplus/client.cpp @@ -355,6 +355,7 @@ void Client::gameInit() Dirs::initScreenshotDir(); updateEnv(); + SDL::allowScreenSaver(config.getBoolValue("allowscreensaver")); dumpLibs(); dumpSizes(); -- cgit v1.2.3-70-g09d2