[Scummvm-cvs-logs] SF.net SVN: scummvm:[42227] scummvm/branches/gsoc2009-draci/engines/draci/ sprite.cpp
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Tue Jul 7 17:37:50 CEST 2009
Revision: 42227
http://scummvm.svn.sourceforge.net/scummvm/?rev=42227&view=rev
Author: dkasak13
Date: 2009-07-07 15:37:50 +0000 (Tue, 07 Jul 2009)
Log Message:
-----------
Added const keyword to "transparent" local variable in Sprite::draw() and removed leading underscore.
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/sprite.cpp
Modified: scummvm/branches/gsoc2009-draci/engines/draci/sprite.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/sprite.cpp 2009-07-07 15:35:35 UTC (rev 42226)
+++ scummvm/branches/gsoc2009-draci/engines/draci/sprite.cpp 2009-07-07 15:37:50 UTC (rev 42227)
@@ -142,14 +142,14 @@
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) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list