aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/animation.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-15 18:43:39 -0400
committerPaul Gilbert2014-03-15 18:43:39 -0400
commitb652e2eafd3de5436b45619659b5299d945074be (patch)
tree4766419b95c6f44c309256a7d5860d4bb184e8c1 /engines/mads/animation.cpp
parent10124f6806150aad409f6db9a6c7a60afcb44872 (diff)
downloadscummvm-rg350-b652e2eafd3de5436b45619659b5299d945074be.tar.gz
scummvm-rg350-b652e2eafd3de5436b45619659b5299d945074be.tar.bz2
scummvm-rg350-b652e2eafd3de5436b45619659b5299d945074be.zip
MADS: Merged the InterfaceSurface and UserInterface classes
Diffstat (limited to 'engines/mads/animation.cpp')
-rw-r--r--engines/mads/animation.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/mads/animation.cpp b/engines/mads/animation.cpp
index 09a9e1fc04..783611e3da 100644
--- a/engines/mads/animation.cpp
+++ b/engines/mads/animation.cpp
@@ -172,9 +172,9 @@ void Animation::free() {
delete this;
}
-void Animation::load(MSurface &depthSurface, InterfaceSurface &interfaceSurface,
- const Common::String &resName, int flags, Common::Array<RGB4> *palAnimData,
- SceneInfo *sceneInfo) {
+void Animation::load(UserInterface &interfaceSurface, MSurface &depthSurface,
+ const Common::String &resName, int flags, Common::Array<RGB4> *palAnimData,
+ SceneInfo *sceneInfo) {
Common::String resourceName = resName;
if (!resourceName.contains("."))
resourceName += ".AA";
@@ -352,7 +352,7 @@ bool Animation::drawFrame(SpriteAsset &spriteSet, const Common::Point &pt, int f
return 0;
}
-void Animation::loadInterface(InterfaceSurface &interfaceSurface, MSurface &depthSurface,
+void Animation::loadInterface(UserInterface &interfaceSurface, MSurface &depthSurface,
AAHeader &header, int flags, Common::Array<RGB4> *palAnimData, SceneInfo *sceneInfo) {
_scene->_depthStyle = 0;
if (header._animMode <= 2) {
@@ -363,8 +363,7 @@ void Animation::loadInterface(InterfaceSurface &interfaceSurface, MSurface &dept
for (uint i = 0; i < sceneInfo->_palAnimData.size(); ++i)
palAnimData->push_back(sceneInfo->_palAnimData[i]);
}
- }
- else if (header._animMode == 4) {
+ } else if (header._animMode == 4) {
// Load a scene interface
Common::String resourceName = "*" + header._interfaceFile;
interfaceSurface.load(resourceName);