diff options
-rw-r--r-- | engines/sludge/sprites.cpp | 32 |
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; |