aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/sprite.h
diff options
context:
space:
mode:
authorAndrew Kurushin2010-10-22 23:13:17 +0000
committerAndrew Kurushin2010-10-22 23:13:17 +0000
commitf24394b85f5d34815659c50cd956c262f4b79d68 (patch)
tree8c93e3f052133b154b1686e00b4066b3967f0c02 /engines/saga/sprite.h
parentb8ff3eb4913dd22bc75ae360baadadd95151077f (diff)
downloadscummvm-rg350-f24394b85f5d34815659c50cd956c262f4b79d68.tar.gz
scummvm-rg350-f24394b85f5d34815659c50cd956c262f4b79d68.tar.bz2
scummvm-rg350-f24394b85f5d34815659c50cd956c262f4b79d68.zip
SAGA: replace Actor::_pathCell, Anim::*, Converse::text, IsoMap::*, Music::_songTable, ObjectMap::*, PalAnim::*, Scene::sceneLut, SndRes::_fxTable* malloc based arrays with Common::Array implementation
add ByteArray type fix debug Tile Hittest frame drawing debug 0x%x => 0x%X svn-id: r53719
Diffstat (limited to 'engines/saga/sprite.h')
-rw-r--r--engines/saga/sprite.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/engines/saga/sprite.h b/engines/saga/sprite.h
index f1eae3811f..4e463cdd88 100644
--- a/engines/saga/sprite.h
+++ b/engines/saga/sprite.h
@@ -34,20 +34,12 @@ namespace Saga {
#define SPRITE_ZMASK 0x0F
struct SpriteInfo {
- Common::Array<byte> decodedBuffer;
+ ByteArray decodedBuffer;
int width;
int height;
int xAlign;
int yAlign;
- byte * getBuffer() {
- if (decodedBuffer.empty()) {
- return NULL;
- } else {
- return &decodedBuffer.front();
- }
- }
-
SpriteInfo() : width(0), height(0), xAlign(0), yAlign(0) {
}
};
@@ -88,7 +80,7 @@ private:
SagaEngine *_vm;
ResourceContext *_spriteContext;
- Common::Array<byte> _decodeBuf;
+ ByteArray _decodeBuf;
};
} // End of namespace Saga