aboutsummaryrefslogtreecommitdiff
path: root/engines/draci
diff options
context:
space:
mode:
authorDenis Kasak2009-07-07 15:37:50 +0000
committerDenis Kasak2009-07-07 15:37:50 +0000
commitd519626c55831653c9a595822f502f84a1e51c9c (patch)
treea4da37ffcdb276ef18f806fe416d96c04ec35aa6 /engines/draci
parent4cfdf8c855143d93185f2d0bc70d06976885da67 (diff)
downloadscummvm-rg350-d519626c55831653c9a595822f502f84a1e51c9c.tar.gz
scummvm-rg350-d519626c55831653c9a595822f502f84a1e51c9c.tar.bz2
scummvm-rg350-d519626c55831653c9a595822f502f84a1e51c9c.zip
Added const keyword to "transparent" local variable in Sprite::draw() and removed leading underscore.
svn-id: r42227
Diffstat (limited to 'engines/draci')
-rw-r--r--engines/draci/sprite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/draci/sprite.cpp b/engines/draci/sprite.cpp
index 32f9d04171..aad7753b03 100644
--- a/engines/draci/sprite.cpp
+++ b/engines/draci/sprite.cpp
@@ -142,14 +142,14 @@ void Sprite::draw(Surface *surface, bool markDirty) const {
byte *dst = (byte *)surface->getBasePtr(clippedDestRect.left, clippedDestRect.top);
byte *src = _data;
- int _transparent = surface->getTransparentColour();
+ const int transparent = surface->getTransparentColour();
// Blit the sprite to the surface
for (int i = sourceRect.top; i < sourceRect.bottom; ++i) {
for (int j = sourceRect.left; j < sourceRect.right; ++j) {
// Don't blit if the pixel is transparent on the target surface
- if (src[i * _width + j] != _transparent) {
+ if (src[i * _width + j] != transparent) {
// Draw the sprite mirrored if the _mirror flag is set
if (_mirror) {