summaryrefslogtreecommitdiff
path: root/src/test/testmain.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-19 22:35:59 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-19 23:27:56 +0300
commitc58b0c2963a45b5e8bc15cad66409634a9270ce1 (patch)
treed2a03317d2b1c76d3fca9c8082975866cd27dd3c /src/test/testmain.cpp
parentf0a7d551bad15085c1f72df38b6a216c8bf3127d (diff)
downloadmanaplus-c58b0c2963a45b5e8bc15cad66409634a9270ce1.tar.gz
manaplus-c58b0c2963a45b5e8bc15cad66409634a9270ce1.tar.bz2
manaplus-c58b0c2963a45b5e8bc15cad66409634a9270ce1.tar.xz
manaplus-c58b0c2963a45b5e8bc15cad66409634a9270ce1.zip
Improve fps test.
Diffstat (limited to 'src/test/testmain.cpp')
-rw-r--r--src/test/testmain.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/testmain.cpp b/src/test/testmain.cpp
index 57c5ac45f..bdf071394 100644
--- a/src/test/testmain.cpp
+++ b/src/test/testmain.cpp
@@ -205,6 +205,8 @@ void TestMain::writeConfig(int openGLMode, int rescale,
{
mConfig.init(Client::getConfigDirectory() + "/config.xml");
+ log->log("set mode to %d", openGLMode);
+
// searched values
mConfig.setValue("opengl", openGLMode);
mConfig.setValue("showBackground", !rescale);
@@ -227,7 +229,7 @@ int TestMain::readValue2(int ver)
{
int def = readValue(ver, 0);
log->log("value for %d = %d", ver, def);
- return 0;
+ return def;
}
int TestMain::readValue(int ver, int def)