aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-12 22:08:21 -0400
committerPaul Gilbert2014-04-12 22:08:21 -0400
commitf4165c5f8a2a15a6b3cdf1ce46732e2e5efe772a (patch)
tree5cac04594d2325ff9de12a91a35d9ef98304e434 /engines
parentfc7e91691d73bcc0e58cd89f85597a2c42fd6d57 (diff)
downloadscummvm-rg350-f4165c5f8a2a15a6b3cdf1ce46732e2e5efe772a.tar.gz
scummvm-rg350-f4165c5f8a2a15a6b3cdf1ce46732e2e5efe772a.tar.bz2
scummvm-rg350-f4165c5f8a2a15a6b3cdf1ce46732e2e5efe772a.zip
MADS: Field/method renaming
Diffstat (limited to 'engines')
-rw-r--r--engines/mads/palette.cpp2
-rw-r--r--engines/mads/scene.cpp12
-rw-r--r--engines/mads/scene.h2
-rw-r--r--engines/mads/sprites.cpp2
-rw-r--r--engines/mads/sprites.h2
5 files changed, 10 insertions, 10 deletions
diff --git a/engines/mads/palette.cpp b/engines/mads/palette.cpp
index 157754f0d4..64e0f80766 100644
--- a/engines/mads/palette.cpp
+++ b/engines/mads/palette.cpp
@@ -527,7 +527,7 @@ void Palette::unlock() {
void Palette::refreshHighColors() {
int val = 18;
- if (_vm->_game->_scene._animFlag)
+ if (_vm->_game->_scene._cyclingActive)
val += _vm->_game->_scene._animCount;
setPalette(_mainPalette, val, 256 - val);
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp
index 92c5cedc04..1aa1fd7f32 100644
--- a/engines/mads/scene.cpp
+++ b/engines/mads/scene.cpp
@@ -37,7 +37,7 @@ Scene::Scene(MADSEngine *vm): _vm(vm), _action(_vm), _depthSurface(vm),
_currentSceneId = 0;
_sceneLogic = nullptr;
_sceneInfo = nullptr;
- _animFlag = false;
+ _cyclingActive = false;
_animVal1 = 0;
_depthStyle = 0;
_roomChanged = false;
@@ -257,7 +257,7 @@ void Scene::initPaletteAnimation(Common::Array<RGB4> &animData, bool animFlag) {
_animCount += _animPalData[i].r;
_animVal1 = (_animCount > 16) ? 3 : 0;
- _animFlag = animFlag;
+ _cyclingActive = animFlag;
}
bool Scene::getDepthHighBits(const Common::Point &pt) {
@@ -393,7 +393,7 @@ void Scene::doFrame() {
}
if (_vm->_game->_fx)
- _animFlag = true;
+ _cyclingActive = true;
_vm->_game->_fx = kTransitionNone;
if (_freeAnimationFlag && _activeAnimation) {
@@ -403,7 +403,7 @@ void Scene::doFrame() {
}
void Scene::drawElements(ScreenTransition transitionType, bool surfaceFlag) {
- // Draw any sprites
+ // Draw any sprite backgrounds
_spriteSlots.drawBackground();
// Set up dirty areas for any text display
@@ -420,8 +420,8 @@ void Scene::drawElements(ScreenTransition transitionType, bool surfaceFlag) {
_textDisplay.setDirtyAreas2();
_dirtyAreas.merge(1, DIRTY_AREAS_SIZE);
- // Draw foreground sprites
- _spriteSlots.drawForeground(&_vm->_screen);
+ // Draw sprites that have changed
+ _spriteSlots.drawSprites(&_vm->_screen);
// Draw text elements onto the view
_textDisplay.draw(&_vm->_screen);
diff --git a/engines/mads/scene.h b/engines/mads/scene.h
index 4d9a3f8efa..e00924a543 100644
--- a/engines/mads/scene.h
+++ b/engines/mads/scene.h
@@ -106,7 +106,7 @@ public:
MSurface _backgroundSurface;
DepthSurface _depthSurface;
UserInterface _userInterface;
- bool _animFlag;
+ bool _cyclingActive;
int _animVal1;
int _animCount;
Common::Array<uint32> _animTicksList;
diff --git a/engines/mads/sprites.cpp b/engines/mads/sprites.cpp
index 0dd640bca0..83f01430eb 100644
--- a/engines/mads/sprites.cpp
+++ b/engines/mads/sprites.cpp
@@ -283,7 +283,7 @@ void SpriteSlots::drawBackground() {
}
}
-void SpriteSlots::drawForeground(MSurface *s) {
+void SpriteSlots::drawSprites(MSurface *s) {
DepthList depthList;
Scene &scene = _vm->_game->_scene;
diff --git a/engines/mads/sprites.h b/engines/mads/sprites.h
index 962d8c9e75..745e0700e8 100644
--- a/engines/mads/sprites.h
+++ b/engines/mads/sprites.h
@@ -192,7 +192,7 @@ public:
/**
* Draw any sprites into the foreground of the scene
*/
- void drawForeground(MSurface *s);
+ void drawSprites(MSurface *s);
void cleanUp();
};