diff options
author | Paul Gilbert | 2015-12-11 21:36:40 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-12-11 21:36:40 -0500 |
commit | 9b848dc7bd48d7e1088b4fe2f26ea863aea3396d (patch) | |
tree | ee8a058b866f065158c1171c57b16f056cbdb2b1 /engines/access | |
parent | 642928f6c9030b2c744793a1c03f988cc52e85a3 (diff) | |
download | scummvm-rg350-9b848dc7bd48d7e1088b4fe2f26ea863aea3396d.tar.gz scummvm-rg350-9b848dc7bd48d7e1088b4fe2f26ea863aea3396d.tar.bz2 scummvm-rg350-9b848dc7bd48d7e1088b4fe2f26ea863aea3396d.zip |
ACCESS: Add a constant for transparency
Diffstat (limited to 'engines/access')
-rw-r--r-- | engines/access/asurface.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/access/asurface.cpp b/engines/access/asurface.cpp index cb51431657..f693e6a3a0 100644 --- a/engines/access/asurface.cpp +++ b/engines/access/asurface.cpp @@ -28,6 +28,8 @@ namespace Access { +const int TRANSPARENCY = 0; + SpriteResource::SpriteResource(AccessEngine *vm, Resource *res) { Common::Array<uint32> offsets; int count = res->_stream->readUint16LE(); @@ -64,7 +66,7 @@ SpriteFrame::SpriteFrame(AccessEngine *vm, Common::SeekableReadStream *stream, i // Empty surface byte *data = (byte *)getPixels(); - Common::fill(data, data + w * h, 0); + Common::fill(data, data + w * h, TRANSPARENCY); // Decode the data for (int y = 0; y < h; ++y) { @@ -202,7 +204,7 @@ void ASurface::transBlitFrom(ASurface *src, const Common::Point &destPos) { byte *destP = (byte *)getBasePtr(destPos.x, destPos.y + yp); for (int xp = 0; xp < this->w; ++xp, ++srcP, ++destP) { - if (*srcP != 0) + if (*srcP != TRANSPARENCY) *destP = *srcP; } } |