diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-11 21:55:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-18 01:37:32 +0300 |
commit | f35d6cd35d92ad16a55bf49f61f19153949497c0 (patch) | |
tree | b962c63304767edb38433ae9f1956377c8638f90 /src/test/testlauncher.cpp | |
parent | a736a01786b9ad6df5dba9955fcac96300c537a2 (diff) | |
download | plus-f35d6cd35d92ad16a55bf49f61f19153949497c0.tar.gz plus-f35d6cd35d92ad16a55bf49f61f19153949497c0.tar.bz2 plus-f35d6cd35d92ad16a55bf49f61f19153949497c0.tar.xz plus-f35d6cd35d92ad16a55bf49f61f19153949497c0.zip |
Improve auto detection for best graphics mode.
Diffstat (limited to 'src/test/testlauncher.cpp')
-rw-r--r-- | src/test/testlauncher.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp index 6818c0b3c..b3fa729a0 100644 --- a/src/test/testlauncher.cpp +++ b/src/test/testlauncher.cpp @@ -23,6 +23,7 @@ #include "client.h" #include "configuration.h" #include "graphics.h" +#include "graphicsmanager.h" #include "localconsts.h" #include "logger.h" #include "sound.h" @@ -69,6 +70,8 @@ int TestLauncher::exec() return testRescale(); else if (mTest == "8" || mTest == "9" || mTest == "10") return testFps(); + else if (mTest == "99") + return testVideoDetection(); else if (mTest == "100") return testInternal(); @@ -207,6 +210,13 @@ int TestLauncher::testInternal() return 0; } +int TestLauncher::testVideoDetection() +{ + graphicsManager.detectGraphics(); + file << mTest << std::endl; + file << config.getIntValue("opengl") << std::endl; +} + int TestLauncher::calcFps(timeval *start, timeval *end, int calls) { long mtime; |