aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/graphics.cpp
diff options
context:
space:
mode:
authorStrangerke2014-02-11 08:00:15 +0100
committerStrangerke2014-02-11 08:00:15 +0100
commit1ed4ed47afdfeae436391b36a6cb2a3e192f06ae (patch)
tree2a7e83a399e9d7b8187e4060962999d318139829 /engines/voyeur/graphics.cpp
parente688cb501534e98a024edc136ca5b833e173944d (diff)
downloadscummvm-rg350-1ed4ed47afdfeae436391b36a6cb2a3e192f06ae.tar.gz
scummvm-rg350-1ed4ed47afdfeae436391b36a6cb2a3e192f06ae.tar.bz2
scummvm-rg350-1ed4ed47afdfeae436391b36a6cb2a3e192f06ae.zip
VOYEUR: Rename some fields related to fading
Diffstat (limited to 'engines/voyeur/graphics.cpp')
-rw-r--r--engines/voyeur/graphics.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp
index 3dee779580..0deeaa1e45 100644
--- a/engines/voyeur/graphics.cpp
+++ b/engines/voyeur/graphics.cpp
@@ -1020,45 +1020,45 @@ void GraphicsManager::screenReset() {
void GraphicsManager::fadeDownICF1(int steps) {
if (steps > 0) {
- int stepAmount = _vm->_voy._field4378 / steps;
+ int stepAmount = _vm->_voy._fadingAmount2 / steps;
for (int idx = 0; idx < steps; ++idx) {
- _vm->_voy._field4378 -= stepAmount;
+ _vm->_voy._fadingAmount2 -= stepAmount;
_vm->_eventsManager.delay(1);
}
}
- _vm->_voy._field4378 = 0;
+ _vm->_voy._fadingAmount2 = 0;
}
void GraphicsManager::fadeUpICF1(int steps) {
if (steps > 0) {
- int stepAmount = (63 - _vm->_voy._field4378) / steps;
+ int stepAmount = (63 - _vm->_voy._fadingAmount2) / steps;
for (int idx = 0; idx < steps; ++idx) {
- _vm->_voy._field4378 += stepAmount;
+ _vm->_voy._fadingAmount2 += stepAmount;
_vm->_eventsManager.delay(1);
}
}
- _vm->_voy._field4378 = 63;
+ _vm->_voy._fadingAmount2 = 63;
}
void GraphicsManager::fadeDownICF(int steps) {
if (steps > 0) {
_vm->_eventsManager.hideCursor();
- int stepAmount1 = _vm->_voy._field4376 / steps;
- int stepAmount2 = _vm->_voy._field4378 / steps;
+ int stepAmount1 = _vm->_voy._fadingAmount1 / steps;
+ int stepAmount2 = _vm->_voy._fadingAmount2 / steps;
for (int idx = 0; idx < steps; ++idx) {
- _vm->_voy._field4376 -= stepAmount1;
- _vm->_voy._field4378 -= stepAmount2;
+ _vm->_voy._fadingAmount1 -= stepAmount1;
+ _vm->_voy._fadingAmount2 -= stepAmount2;
_vm->_eventsManager.delay(1);
}
}
- _vm->_voy._field4376 = 0;
- _vm->_voy._field4378 = 0;
+ _vm->_voy._fadingAmount1 = 0;
+ _vm->_voy._fadingAmount2 = 0;
}
void GraphicsManager::drawDot() {