diff options
author | Eugene Sandulenko | 2016-05-20 20:56:32 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-20 20:56:32 +0200 |
commit | 7da6d9937114d962ab4e8eea532e224b5e262128 (patch) | |
tree | 94d66c7532e562605f9c65310f283196116332ad | |
parent | a2fb71928b9d1fa6e99768ea11c35303f9d98d81 (diff) | |
download | scummvm-rg350-7da6d9937114d962ab4e8eea532e224b5e262128.tar.gz scummvm-rg350-7da6d9937114d962ab4e8eea532e224b5e262128.tar.bz2 scummvm-rg350-7da6d9937114d962ab4e8eea532e224b5e262128.zip |
GNAP: Fix transparency
-rw-r--r-- | engines/gnap/gamesys.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/gnap/gamesys.cpp b/engines/gnap/gamesys.cpp index 7cfa01610c..c10806d918 100644 --- a/engines/gnap/gamesys.cpp +++ b/engines/gnap/gamesys.cpp @@ -651,6 +651,7 @@ void GameSys::blitSprite32(Graphics::Surface *destSurface, int x, int y, byte *s byte srcPixel = src[xc]; if (!transparent || srcPixel) { uint32 rgb = sourcePalette[srcPixel]; + rdst[0] = 0xFF; rdst[1] = rgb & 0x000000FF; rdst[2] = (rgb & 0x0000FF00) >> 8; rdst[3] = (rgb & 0x00FF0000) >> 16; @@ -688,6 +689,7 @@ void GameSys::blitSpriteScaled32(Graphics::Surface *destSurface, Common::Rect &f byte srcPixel = *wsrc; if (srcPixel) { uint32 rgb = sourcePalette[srcPixel]; + wdst[0] = 0xFF; wdst[1] = rgb & 0x000000FF; wdst[2] = (rgb & 0x0000FF00) >> 8; wdst[3] = (rgb & 0x00FF0000) >> 16; @@ -715,6 +717,7 @@ void GameSys::blitSpriteScaled32(Graphics::Surface *destSurface, Common::Rect &f byte srcPixel = *wsrc; if (srcPixel) { uint32 rgb = sourcePalette[srcPixel]; + wdst[0] = 0xFF; wdst[1] = rgb & 0x000000FF; wdst[2] = (rgb & 0x0000FF00) >> 8; wdst[3] = (rgb & 0x00FF0000) >> 16; |