diff options
author | Strangerke | 2014-02-26 22:44:30 +0100 |
---|---|---|
committer | Strangerke | 2014-02-26 22:45:16 +0100 |
commit | ccde2d5b7604756f5333ea16807c82ef1b387c10 (patch) | |
tree | d9c48e61db4248f9d15ab3bd404003ce7d1f7f4b /engines/voyeur/graphics.cpp | |
parent | 55b76f7d16be83fc3e6f2e2d4d0f53ab7eaae1bd (diff) | |
download | scummvm-rg350-ccde2d5b7604756f5333ea16807c82ef1b387c10.tar.gz scummvm-rg350-ccde2d5b7604756f5333ea16807c82ef1b387c10.tar.bz2 scummvm-rg350-ccde2d5b7604756f5333ea16807c82ef1b387c10.zip |
VOYEUR: Remove setVm from SVoy
Diffstat (limited to 'engines/voyeur/graphics.cpp')
-rw-r--r-- | engines/voyeur/graphics.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp index 5bf314ecf5..0f70a23cf2 100644 --- a/engines/voyeur/graphics.cpp +++ b/engines/voyeur/graphics.cpp @@ -999,45 +999,45 @@ void GraphicsManager::screenReset() { void GraphicsManager::fadeDownICF1(int steps) { if (steps > 0) { - int stepAmount = _vm->_voy._fadingAmount2 / steps; + int stepAmount = _vm->_voy->_fadingAmount2 / steps; for (int idx = 0; idx < steps; ++idx) { - _vm->_voy._fadingAmount2 -= stepAmount; + _vm->_voy->_fadingAmount2 -= stepAmount; _vm->_eventsManager.delay(1); } } - _vm->_voy._fadingAmount2 = 0; + _vm->_voy->_fadingAmount2 = 0; } void GraphicsManager::fadeUpICF1(int steps) { if (steps > 0) { - int stepAmount = (63 - _vm->_voy._fadingAmount2) / steps; + int stepAmount = (63 - _vm->_voy->_fadingAmount2) / steps; for (int idx = 0; idx < steps; ++idx) { - _vm->_voy._fadingAmount2 += stepAmount; + _vm->_voy->_fadingAmount2 += stepAmount; _vm->_eventsManager.delay(1); } } - _vm->_voy._fadingAmount2 = 63; + _vm->_voy->_fadingAmount2 = 63; } void GraphicsManager::fadeDownICF(int steps) { if (steps > 0) { _vm->_eventsManager.hideCursor(); - int stepAmount1 = _vm->_voy._fadingAmount1 / steps; - int stepAmount2 = _vm->_voy._fadingAmount2 / steps; + int stepAmount1 = _vm->_voy->_fadingAmount1 / steps; + int stepAmount2 = _vm->_voy->_fadingAmount2 / steps; for (int idx = 0; idx < steps; ++idx) { - _vm->_voy._fadingAmount1 -= stepAmount1; - _vm->_voy._fadingAmount2 -= stepAmount2; + _vm->_voy->_fadingAmount1 -= stepAmount1; + _vm->_voy->_fadingAmount2 -= stepAmount2; _vm->_eventsManager.delay(1); } } - _vm->_voy._fadingAmount1 = 0; - _vm->_voy._fadingAmount2 = 0; + _vm->_voy->_fadingAmount1 = 0; + _vm->_voy->_fadingAmount2 = 0; } void GraphicsManager::drawDot() { |