diff options
author | yinsimei | 2017-06-18 08:49:56 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | f13854780869f3958098de85cce1052469c4d6d9 (patch) | |
tree | 904df002da2c1650dfd1e7a6d73069601b0b3367 /engines/sludge | |
parent | 387a558ec40aa2258a23e6c9c8cb5b3096f9ff9e (diff) | |
download | scummvm-rg350-f13854780869f3958098de85cce1052469c4d6d9.tar.gz scummvm-rg350-f13854780869f3958098de85cce1052469c4d6d9.tar.bz2 scummvm-rg350-f13854780869f3958098de85cce1052469c4d6d9.zip |
SLUDGE: paste image to background
Diffstat (limited to 'engines/sludge')
-rw-r--r-- | engines/sludge/sprites.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/sludge/sprites.cpp b/engines/sludge/sprites.cpp index 3662660cab..96dec30867 100644 --- a/engines/sludge/sprites.cpp +++ b/engines/sludge/sprites.cpp @@ -50,6 +50,7 @@ extern inputType input; extern int cameraX, cameraY; extern float cameraZoom; extern Graphics::Surface renderSurface; +extern Graphics::Surface backdropSurface; unsigned char currentBurnR = 0, currentBurnG = 0, currentBurnB = 0; @@ -286,8 +287,11 @@ bool loadSpriteBank(int fileNum, spriteBank &loadhere, bool isFont) { return true; } -void pasteSpriteToBackDrop(int x1, int y1, sprite &single, - const spritePalette &fontPal) { +void pasteSpriteToBackDrop(int x1, int y1, sprite &single, const spritePalette &fontPal) { + x1 -= single.xhot; + y1 -= single.yhot; + Graphics::TransparentSurface tmp(single.surface, false); + tmp.blit(backdropSurface, x1, y1); #if 0 float tx1 = (float)(single.tex_x) / fontPal.tex_w[single.texNum]; float ty1 = 0.0; @@ -382,8 +386,8 @@ void pasteSpriteToBackDrop(int x1, int y1, sprite &single, } xoffset += viewportWidth; } -#endif setPixelCoords(false); +#endif } void burnSpriteToBackDrop(int x1, int y1, sprite &single, |