aboutsummaryrefslogtreecommitdiff
path: root/engines/testbed
diff options
context:
space:
mode:
authorNeeraj Kumar2010-07-08 20:35:05 +0000
committerNeeraj Kumar2010-07-08 20:35:05 +0000
commitd3c42b71ba2b12e3dd7877ec1e28fcaedc5f6a6c (patch)
tree887129aeae64eac65f216bfd9207f55f6a4b1c35 /engines/testbed
parent333f704513aa59e9d92cae66a8db0d8235975175 (diff)
downloadscummvm-rg350-d3c42b71ba2b12e3dd7877ec1e28fcaedc5f6a6c.tar.gz
scummvm-rg350-d3c42b71ba2b12e3dd7877ec1e28fcaedc5f6a6c.tar.bz2
scummvm-rg350-d3c42b71ba2b12e3dd7877ec1e28fcaedc5f6a6c.zip
restore initial palettes when done with rotation
svn-id: r50749
Diffstat (limited to 'engines/testbed')
-rw-r--r--engines/testbed/graphics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/testbed/graphics.cpp b/engines/testbed/graphics.cpp
index fbce3cf5a5..2c820fbc26 100644
--- a/engines/testbed/graphics.cpp
+++ b/engines/testbed/graphics.cpp
@@ -813,9 +813,6 @@ bool GFXtests::paletteRotation() {
g_system->updateScreen();
g_system->delayMillis(1000);
- // Reset initial palettes
- // GFXTestSuite::setCustomColor(255, 0, 0);
- // Testsuite::clearScreen();
bool toRotate = true;
Common::Event event;
@@ -844,6 +841,9 @@ bool GFXtests::paletteRotation() {
}
CursorMan.showMouse(false);
+ // Reset initial palettes
+ GFXTestSuite::setCustomColor(255, 0, 0);
+ Testsuite::clearScreen();
if(Testsuite::handleInteractiveInput("Did you saw a rotation in colors of rectangles displayed on screen?", "Yes", "No", kOptionRight)) {
return false;