diff options
author | Nicola Mettifogo | 2009-06-12 05:03:18 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2009-06-12 05:03:18 +0000 |
commit | 5fccc0f98dda5cbcec208b17c2e6d36a36fadf1e (patch) | |
tree | 4077bb476edd1bd959eca925a6f5d80bceff230f /engines/parallaction/gfxbase.cpp | |
parent | f5b2e69522153c47438895ea80129ad5e3c9b952 (diff) | |
download | scummvm-rg350-5fccc0f98dda5cbcec208b17c2e6d36a36fadf1e.tar.gz scummvm-rg350-5fccc0f98dda5cbcec208b17c2e6d36a36fadf1e.tar.bz2 scummvm-rg350-5fccc0f98dda5cbcec208b17c2e6d36a36fadf1e.zip |
* Final version of the IFF parsing code.
* Refactored ILBMDecoder usage from disk code.
svn-id: r41458
Diffstat (limited to 'engines/parallaction/gfxbase.cpp')
-rw-r--r-- | engines/parallaction/gfxbase.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/parallaction/gfxbase.cpp b/engines/parallaction/gfxbase.cpp index ec72b14c15..fc6cb28d9e 100644 --- a/engines/parallaction/gfxbase.cpp +++ b/engines/parallaction/gfxbase.cpp @@ -162,9 +162,7 @@ void BackgroundInfo::loadGfxObjMask(const char *name, GfxObj *obj) { Common::Rect rect; obj->getRect(0, rect); - MaskBuffer *buf = new MaskBuffer; - buf->create(rect.width(), rect.height()); - _vm->_disk->loadMask(name, *buf); + MaskBuffer *buf = _vm->_disk->loadMask(name, rect.width(), rect.height()); obj->_maskId = addMaskPatch(buf); obj->_hasMask = true; @@ -174,9 +172,7 @@ void BackgroundInfo::loadGfxObjPath(const char *name, GfxObj *obj) { Common::Rect rect; obj->getRect(0, rect); - PathBuffer *buf = new PathBuffer; - buf->create(rect.width(), rect.height()); - _vm->_disk->loadPath(name, *buf); + PathBuffer *buf = _vm->_disk->loadPath(name, rect.width(), rect.height()); obj->_pathId = addPathPatch(buf); obj->_hasPath = true; |