aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/graphics.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2013-12-14 22:27:16 -0500
committerPaul Gilbert2013-12-14 22:27:16 -0500
commite44fa657e4cfc3c27b4eb607ba1d1cb11aade053 (patch)
tree70fb63c53bb8b16224c263f86300309a5aeba8e5 /engines/voyeur/graphics.cpp
parent798a93d8995011a5cc2cc2a611fb2c6f774d9600 (diff)
downloadscummvm-rg350-e44fa657e4cfc3c27b4eb607ba1d1cb11aade053.tar.gz
scummvm-rg350-e44fa657e4cfc3c27b4eb607ba1d1cb11aade053.tar.bz2
scummvm-rg350-e44fa657e4cfc3c27b4eb607ba1d1cb11aade053.zip
VOYEUR: Implemented support methods needed for doApt
Diffstat (limited to 'engines/voyeur/graphics.cpp')
-rw-r--r--engines/voyeur/graphics.cpp43
1 files changed, 43 insertions, 0 deletions
diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp
index fbf671c408..96214b7779 100644
--- a/engines/voyeur/graphics.cpp
+++ b/engines/voyeur/graphics.cpp
@@ -663,4 +663,47 @@ void GraphicsManager::doScroll(const Common::Point &pt) {
error("TODO: doScroll");
}
+void GraphicsManager::fadeDownICF1(int steps) {
+ if (steps > 0) {
+ int stepAmount = _vm->_voy._field4378 / steps;
+
+ for (int idx = 0; idx < steps; ++idx) {
+ _vm->_voy._field4378 -= stepAmount;
+ _vm->_eventsManager.delay(1);
+ }
+ }
+
+ _vm->_voy._field4378 = 0;
+}
+
+void GraphicsManager::fadeUpICF1(int steps) {
+ if (steps > 0) {
+ int stepAmount = (63 - _vm->_voy._field4378) / steps;
+
+ for (int idx = 0; idx < steps; ++idx) {
+ _vm->_voy._field4378 += stepAmount;
+ _vm->_eventsManager.delay(1);
+ }
+ }
+
+ _vm->_voy._field4378 = 63;
+}
+
+void GraphicsManager::fadeDownICF(int steps) {
+ if (steps > 0) {
+ _vm->_eventsManager.mouseOff();
+ int stepAmount1 = _vm->_voy._field4376 / steps;
+ int stepAmount2 = _vm->_voy._field4378 / steps;
+
+ for (int idx = 0; idx < steps; ++idx) {
+ _vm->_voy._field4376 -= stepAmount1;
+ _vm->_voy._field4378 -= stepAmount2;
+ _vm->_eventsManager.delay(1);
+ }
+ }
+
+ _vm->_voy._field4376 = 0;
+ _vm->_voy._field4378 = 0;
+}
+
} // End of namespace Voyeur