aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/gfxbase.cpp
diff options
context:
space:
mode:
authorAlyssa Milburn2012-09-27 22:41:51 +0200
committerAlyssa Milburn2012-09-27 22:41:51 +0200
commit41d337c5494caa2521077adc033fb19cd76773e8 (patch)
treed692aa7f643d2b4b9eef3635cd7076d520b555ac /engines/parallaction/gfxbase.cpp
parentd7b74ed5b156d1c9087318a99907aa34f8db6f09 (diff)
downloadscummvm-rg350-41d337c5494caa2521077adc033fb19cd76773e8.tar.gz
scummvm-rg350-41d337c5494caa2521077adc033fb19cd76773e8.tar.bz2
scummvm-rg350-41d337c5494caa2521077adc033fb19cd76773e8.zip
PARALLACTION: Clean up global variables a bit.
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 852235ce34..8ef3c0fabf 100644
--- a/engines/parallaction/gfxbase.cpp
+++ b/engines/parallaction/gfxbase.cpp
@@ -152,22 +152,22 @@ void Gfx::freeCharacterObjects() {
freeDialogueObjects();
}
-void BackgroundInfo::loadGfxObjMask(const char *name, GfxObj *obj) {
+void BackgroundInfo::loadGfxObjMask(Parallaction *vm, const char *name, GfxObj *obj) {
debugC(1, kDebugGraphics, "BackgroundInfo::loadGfxObjMask(\"%s\")", name);
Common::Rect rect;
obj->getRect(0, rect);
- MaskBuffer *buf = _vm->_disk->loadMask(name, rect.width(), rect.height());
+ MaskBuffer *buf = vm->_disk->loadMask(name, rect.width(), rect.height());
obj->_maskId = addMaskPatch(buf);
obj->_hasMask = true;
}
-void BackgroundInfo::loadGfxObjPath(const char *name, GfxObj *obj) {
+void BackgroundInfo::loadGfxObjPath(Parallaction *vm, const char *name, GfxObj *obj) {
Common::Rect rect;
obj->getRect(0, rect);
- PathBuffer *buf = _vm->_disk->loadPath(name, rect.width(), rect.height());
+ PathBuffer *buf = vm->_disk->loadPath(name, rect.width(), rect.height());
obj->_pathId = addPathPatch(buf);
obj->_hasPath = true;