aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge
diff options
context:
space:
mode:
authorSimei Yin2017-08-12 11:20:48 +0200
committerSimei Yin2017-08-12 11:20:48 +0200
commit044ea6f8b028e24e49760702716d4498f70acab9 (patch)
tree9a25518bde7afe2e62dd8ef4bce40455f4fafa2f /engines/sludge
parentcafec8773d4a5b9b38da9d12ee68ec6ad02bf163 (diff)
downloadscummvm-rg350-044ea6f8b028e24e49760702716d4498f70acab9.tar.gz
scummvm-rg350-044ea6f8b028e24e49760702716d4498f70acab9.tar.bz2
scummvm-rg350-044ea6f8b028e24e49760702716d4498f70acab9.zip
SLUDGE: Apply lightmap to sprites
Diffstat (limited to 'engines/sludge')
-rw-r--r--engines/sludge/sprites.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/engines/sludge/sprites.cpp b/engines/sludge/sprites.cpp
index 644d87d1a8..fc9622e92a 100644
--- a/engines/sludge/sprites.cpp
+++ b/engines/sludge/sprites.cpp
@@ -386,14 +386,14 @@ bool GraphicsManager::scaleSprite(Sprite &single, const SpritePalette &fontPal,
_curLight[0] = _curLight[1] = _curLight[2] = 255;
ptr = blitted = new Graphics::Surface();
blitted->copyFrom(single.surface);
-// Graphics::TransparentSurface tmp(_lightMap, false);
-// Common::Rect rect_none(x1, y1, x1 + diffX, y1 + diffY);
-// Common::Rect rect_h(_sceneWidth - x1 - diffX, y1, _sceneWidth - x1, y1 + diffY);
-// tmp.blit(*blitted, 0, 0,
-// (mirror ? Graphics::FLIP_H : Graphics::FLIP_NONE),
-// (mirror ? &rect_h : &rect_none),
-// TS_ARGB(255, 255, 255, 255),
-// blitted->w, blitted->h, Graphics::BLEND_MULTIPLY);
+ Graphics::TransparentSurface tmp(_lightMap, false);
+ Common::Rect rect_none(x1, y1, x1 + diffX, y1 + diffY);
+ Common::Rect rect_h(_sceneWidth - x1 - diffX, y1, _sceneWidth - x1, y1 + diffY);
+ tmp.blit(*blitted, 0, 0,
+ (mirror ? Graphics::FLIP_H : Graphics::FLIP_NONE),
+ (mirror ? &rect_h : &rect_none),
+ TS_ARGB(255, 255, 255, 255),
+ blitted->w, blitted->h, Graphics::BLEND_MULTIPLY);
}
} else {
_curLight[0] = _curLight[1] = _curLight[2] = 255;
@@ -526,14 +526,14 @@ void GraphicsManager::fixScaleSprite(int x, int y, Sprite &single, const SpriteP
_curLight[0] = _curLight[1] = _curLight[2] = 255;
ptr = blitted = new Graphics::Surface();
blitted->copyFrom(single.surface);
-// Graphics::TransparentSurface tmp(_lightMap, false);
-// Common::Rect rect_none(x1, y1, x1 + diffX, y1 + diffY);
-// Common::Rect rect_h(_sceneWidth - x1 - diffX, y1, _sceneWidth - x1, y1 + diffY);
-// tmp.blit(*blitted, 0, 0,
-// (mirror ? Graphics::FLIP_H : Graphics::FLIP_NONE),
-// (mirror ? &rect_h : &rect_none),
-// TS_ARGB(255, 255, 255, 255),
-// blitted->w, blitted->h, Graphics::BLEND_MULTIPLY);
+ Graphics::TransparentSurface tmp(_lightMap, false);
+ Common::Rect rect_none(x1, y1, x1 + diffX, y1 + diffY);
+ Common::Rect rect_h(_sceneWidth - x1 - diffX, y1, _sceneWidth - x1, y1 + diffY);
+ tmp.blit(*blitted, 0, 0,
+ (mirror ? Graphics::FLIP_H : Graphics::FLIP_NONE),
+ (mirror ? &rect_h : &rect_none),
+ TS_ARGB(255, 255, 255, 255),
+ blitted->w, blitted->h, Graphics::BLEND_MULTIPLY);
}
} else {
_curLight[0] = _curLight[1] = _curLight[2] = 255;