diff options
author | Nicola Mettifogo | 2008-06-29 09:30:32 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-06-29 09:30:32 +0000 |
commit | d8645297cd174fbbd7059a317975c45adefaa5e5 (patch) | |
tree | 29dcfbe1cbfe7ac8cde0e8545c550fc7f8f956cf /engines/parallaction/gfxbase.cpp | |
parent | 7a9e911896885750566a3c21e794823e4527f78a (diff) | |
download | scummvm-rg350-d8645297cd174fbbd7059a317975c45adefaa5e5.tar.gz scummvm-rg350-d8645297cd174fbbd7059a317975c45adefaa5e5.tar.bz2 scummvm-rg350-d8645297cd174fbbd7059a317975c45adefaa5e5.zip |
Changed all remaining code to use the GfxObj class to keep frames data. This allows for more uniform processing during rendering, and also fixes the display of dialogue faces for BRA.
svn-id: r32833
Diffstat (limited to 'engines/parallaction/gfxbase.cpp')
-rw-r--r-- | engines/parallaction/gfxbase.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/parallaction/gfxbase.cpp b/engines/parallaction/gfxbase.cpp index 6599a1f81c..dc28d9d425 100644 --- a/engines/parallaction/gfxbase.cpp +++ b/engines/parallaction/gfxbase.cpp @@ -86,27 +86,27 @@ void GfxObj::clearFlags(uint32 flags) { } GfxObj* Gfx::loadAnim(const char *name) { - Frames *frames = _disk->loadFrames(name); - GfxObj *obj = new GfxObj(kGfxObjTypeAnim, frames, name); + GfxObj *obj = _disk->loadFrames(name); assert(obj); + obj->type = kGfxObjTypeAnim; return obj; } GfxObj* Gfx::loadGet(const char *name) { - Frames *frames = _disk->loadStatic(name); - GfxObj *obj = new GfxObj(kGfxObjTypeGet, frames, name); + GfxObj *obj = _disk->loadStatic(name); assert(obj); + obj->type = kGfxObjTypeGet; return obj; } GfxObj* Gfx::loadDoor(const char *name) { - Frames *frames = _disk->loadFrames(name); - GfxObj *obj = new GfxObj(kGfxObjTypeDoor, frames, name); + GfxObj *obj = _disk->loadFrames(name); assert(obj); + obj->type = kGfxObjTypeDoor; return obj; } |