diff options
author | sluicebox | 2019-11-15 01:38:21 -0800 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-19 00:20:40 +0100 |
commit | b8390fa161c0c324af0e52a4f3a740cca9e9a479 (patch) | |
tree | e88f1e7cbb2c35c1b1c3319c9481c4edafca734d /engines/testbed/graphics.cpp | |
parent | 3238e523ee2ac442c7562830a85b347400b7da88 (diff) | |
download | scummvm-rg350-b8390fa161c0c324af0e52a4f3a740cca9e9a479.tar.gz scummvm-rg350-b8390fa161c0c324af0e52a4f3a740cca9e9a479.tar.bz2 scummvm-rg350-b8390fa161c0c324af0e52a4f3a740cca9e9a479.zip |
GRAPHICS: Add interface for horizontal shake
Diffstat (limited to 'engines/testbed/graphics.cpp')
-rw-r--r-- | engines/testbed/graphics.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/testbed/graphics.cpp b/engines/testbed/graphics.cpp index 65833d1de8..1eac3a8ffb 100644 --- a/engines/testbed/graphics.cpp +++ b/engines/testbed/graphics.cpp @@ -981,10 +981,10 @@ TestExitStatus GFXtests::shakingEffect() { Testsuite::writeOnScreen("If Shaking Effect works, this should shake!", pt); int times = 15; while (times--) { - g_system->setShakePos(25); + g_system->setShakePos(25, 25); g_system->delayMillis(50); g_system->updateScreen(); - g_system->setShakePos(0); + g_system->setShakePos(0, 0); g_system->delayMillis(50); g_system->updateScreen(); } @@ -1187,12 +1187,12 @@ TestExitStatus GFXtests::cursorTrails() { return kTestSkipped; } TestExitStatus passed = kTestFailed; - g_system->setShakePos(25); + g_system->setShakePos(25, 25); g_system->updateScreen(); if (Testsuite::handleInteractiveInput("Does the cursor leaves trails while moving?", "Yes", "No", kOptionRight)) { passed = kTestPassed; } - g_system->setShakePos(0); + g_system->setShakePos(0, 0); g_system->updateScreen(); return passed; } |