aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNeeraj Kumar2010-07-05 23:02:43 +0000
committerNeeraj Kumar2010-07-05 23:02:43 +0000
commitdeb2c189c757b7d3520623a92b7769751eed4717 (patch)
tree38b118d764df16019894bb6a60cddf32467f1fd4 /engines
parent9241e47e9aa4efb1d7c4c25d889b93aed915928c (diff)
downloadscummvm-rg350-deb2c189c757b7d3520623a92b7769751eed4717.tar.gz
scummvm-rg350-deb2c189c757b7d3520623a92b7769751eed4717.tar.bz2
scummvm-rg350-deb2c189c757b7d3520623a92b7769751eed4717.zip
added code to revert back to 8bpp from other formats
svn-id: r50714
Diffstat (limited to 'engines')
-rw-r--r--engines/testbed/graphics.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/testbed/graphics.cpp b/engines/testbed/graphics.cpp
index a140d0ca14..44d2b00cd0 100644
--- a/engines/testbed/graphics.cpp
+++ b/engines/testbed/graphics.cpp
@@ -823,12 +823,21 @@ bool GFXtests::pixelFormats() {
Testsuite::logDetailedPrintf("Testing pixel format failed for format #%d on the list\n", numFormatsTested);
}
}
+
+ // Revert back to 8bpp
+ g_system->beginGFXTransaction();
+ g_system->initSize(320, 200);
+ g_system->endGFXTransaction();
+ GFXTestSuite::setCustomColor(255, 0, 0);
+ initMousePalette();
+ Testsuite::clearScreen();
+
+
if (numFailed) {
Testsuite::logDetailedPrintf("Pixel Format test: Failed : %d, Passed : %d, Ignored %d\n",numFailed, numPassed, numFormatsTested - (numPassed + numFailed));
return false;
}
- Testsuite::clearScreen();
return true;
}