diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-19 21:34:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-19 21:45:37 +0300 |
commit | f0a7d551bad15085c1f72df38b6a216c8bf3127d (patch) | |
tree | 46812143c8d811c8cf43897d4fa1898d3c83ad5e /src/graphicsmanager.cpp | |
parent | cc7e9dc6e6f7a006db7417fd9b7d93d587e27529 (diff) | |
download | mv-f0a7d551bad15085c1f72df38b6a216c8bf3127d.tar.gz mv-f0a7d551bad15085c1f72df38b6a216c8bf3127d.tar.bz2 mv-f0a7d551bad15085c1f72df38b6a216c8bf3127d.tar.xz mv-f0a7d551bad15085c1f72df38b6a216c8bf3127d.zip |
Auto detect better video mode at first start.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 4 |
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() |