From c58b0c2963a45b5e8bc15cad66409634a9270ce1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 May 2012 22:35:59 +0300 Subject: Improve fps test. --- src/test/testmain.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/test/testmain.cpp') 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) -- cgit v1.2.3-70-g09d2