diff options
author | Strangerke | 2016-05-20 21:46:19 +0200 |
---|---|---|
committer | Strangerke | 2016-05-20 21:46:19 +0200 |
commit | 3981d8514e00b9094d7119e5c251e74006c03b84 (patch) | |
tree | 1b70a2dea060690aa3ccd6fb9917f0fc89e4f4b1 /engines/gnap | |
parent | 3f2fcec10b84294bef258e9bad24e72eafbee9ee (diff) | |
download | scummvm-rg350-3981d8514e00b9094d7119e5c251e74006c03b84.tar.gz scummvm-rg350-3981d8514e00b9094d7119e5c251e74006c03b84.tar.bz2 scummvm-rg350-3981d8514e00b9094d7119e5c251e74006c03b84.zip |
GNAP: Remove erroneous comments, simplify a call to blitSprite32
Diffstat (limited to 'engines/gnap')
-rw-r--r-- | engines/gnap/gamesys.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/gnap/gamesys.cpp b/engines/gnap/gamesys.cpp index 36a7c4524c..eedd7fa534 100644 --- a/engines/gnap/gamesys.cpp +++ b/engines/gnap/gamesys.cpp @@ -224,7 +224,7 @@ void GameSys::drawSpriteToBackground(int x, int y, int resourceId) { int spriteWidth = spriteResource->_width; int spriteHeight = spriteResource->_height; Common::Rect dstRect(0, 0, spriteWidth, spriteHeight); - blitSprite32(_backgroundSurface, x, y, sourcePixels, spriteResource->_width, dstRect, sourcePalette, spriteResource->_transparent != 0); + blitSprite32(_backgroundSurface, x, y, sourcePixels, spriteResource->_width, dstRect, sourcePalette, spriteResource->_transparent); _vm->_spriteCache->release(resourceId); // Add dirty rect so the modified background is redrawn @@ -255,7 +255,7 @@ void GameSys::drawSpriteToSurface(Graphics::Surface *surface, int x, int y, int uint32 *sourcePalette = spriteResource->_palette; byte *sourcePixels = spriteResource->_pixels; Common::Rect dstRect(0, 0, spriteResource->_width, spriteResource->_height); - blitSprite32(surface, x, y, sourcePixels, spriteResource->_width, dstRect, sourcePalette, true);//spriteResource->_transparent != 0); + blitSprite32(surface, x, y, sourcePixels, spriteResource->_width, dstRect, sourcePalette, true); _vm->_spriteCache->release(resourceId); } @@ -779,7 +779,7 @@ void GameSys::seqDrawSpriteFrame(SpriteResource *spriteResource, SequenceFrame & blitSpriteScaled32(_frontSurface, frame._rect, clipRect, sourcePixels, spriteResource->_width, sourceRect, sourcePalette); } else { clipRect.translate(-frame._rect.left, -frame._rect.top); - blitSprite32(_frontSurface, x, y, sourcePixels, spriteResource->_width, clipRect, sourcePalette, true);//spriteResource->_transparent != 0); + blitSprite32(_frontSurface, x, y, sourcePixels, spriteResource->_width, clipRect, sourcePalette, true); } } |