summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-19 21:34:11 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-19 21:45:37 +0300
commitf0a7d551bad15085c1f72df38b6a216c8bf3127d (patch)
tree46812143c8d811c8cf43897d4fa1898d3c83ad5e /src/graphicsmanager.cpp
parentcc7e9dc6e6f7a006db7417fd9b7d93d587e27529 (diff)
downloadmanaplus-f0a7d551bad15085c1f72df38b6a216c8bf3127d.tar.gz
manaplus-f0a7d551bad15085c1f72df38b6a216c8bf3127d.tar.bz2
manaplus-f0a7d551bad15085c1f72df38b6a216c8bf3127d.tar.xz
manaplus-f0a7d551bad15085c1f72df38b6a216c8bf3127d.zip
Auto detect better video mode at first start.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index f1e13b74b..36ccdc045 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -48,9 +48,13 @@ GraphicsManager::~GraphicsManager()
bool GraphicsManager::startDetection()
{
+#ifdef USE_OPENGL
TestMain *test = new TestMain();
test->exec(false);
return test->getConfig().getValueInt("opengl", -1);
+#else
+ return 0;
+#endif
}
bool GraphicsManager::detectGraphics()