aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/gfxbase.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2009-01-12 13:14:09 +0000
committerNicola Mettifogo2009-01-12 13:14:09 +0000
commite5d75d1f7b8a677e4f4e5f5d5da8fff413265ed6 (patch)
tree54855c1f61d9e5f327b7fffd245a954185f17271 /engines/parallaction/gfxbase.cpp
parent5afb4ad1659242baaa91cc948d49dace21be6ae6 (diff)
downloadscummvm-rg350-e5d75d1f7b8a677e4f4e5f5d5da8fff413265ed6.tar.gz
scummvm-rg350-e5d75d1f7b8a677e4f4e5f5d5da8fff413265ed6.tar.bz2
scummvm-rg350-e5d75d1f7b8a677e4f4e5f5d5da8fff413265ed6.zip
Fixed regression from revision 35765. Mask and path patches were destroyed before getting a chance to be used.
svn-id: r35835
Diffstat (limited to 'engines/parallaction/gfxbase.cpp')
-rw-r--r--engines/parallaction/gfxbase.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/parallaction/gfxbase.cpp b/engines/parallaction/gfxbase.cpp
index 2c9039c275..9a3d204569 100644
--- a/engines/parallaction/gfxbase.cpp
+++ b/engines/parallaction/gfxbase.cpp
@@ -156,7 +156,7 @@ void Gfx::freeCharacterObjects() {
clearGfxObjects(kGfxObjCharacter);
}
-void Gfx::loadGfxObjMask(const char *name, GfxObj *obj) {
+void BackgroundInfo::loadGfxObjMask(const char *name, GfxObj *obj) {
Common::Rect rect;
obj->getRect(0, rect);
@@ -164,11 +164,11 @@ void Gfx::loadGfxObjMask(const char *name, GfxObj *obj) {
buf->create(rect.width(), rect.height());
_vm->_disk->loadMask(name, *buf);
- obj->_maskId = _backgroundInfo->addMaskPatch(buf);
+ obj->_maskId = addMaskPatch(buf);
obj->_hasMask = true;
}
-void Gfx::loadGfxObjPath(const char *name, GfxObj *obj) {
+void BackgroundInfo::loadGfxObjPath(const char *name, GfxObj *obj) {
Common::Rect rect;
obj->getRect(0, rect);
@@ -176,7 +176,7 @@ void Gfx::loadGfxObjPath(const char *name, GfxObj *obj) {
buf->create(rect.width(), rect.height());
_vm->_disk->loadPath(name, *buf);
- obj->_pathId = _backgroundInfo->addPathPatch(buf);
+ obj->_pathId = addPathPatch(buf);
obj->_hasPath = true;
}