From d519626c55831653c9a595822f502f84a1e51c9c Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Tue, 7 Jul 2009 15:37:50 +0000 Subject: Added const keyword to "transparent" local variable in Sprite::draw() and removed leading underscore. svn-id: r42227 --- engines/draci/sprite.cpp | 4 ++-- 1 file 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) { -- cgit v1.2.3