aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-06-04 00:29:36 +0200
committerEugene Sandulenko2016-08-03 23:40:36 +0200
commitcc2abbbb9c7190a567aee9babc2073757a4edc0f (patch)
tree755d0653160bbbd7f2f4d306c68719b8a973bf1d /engines
parent06a655ff9d9ca6bead06408b12fd1f76cc5a62cf (diff)
downloadscummvm-rg350-cc2abbbb9c7190a567aee9babc2073757a4edc0f.tar.gz
scummvm-rg350-cc2abbbb9c7190a567aee9babc2073757a4edc0f.tar.bz2
scummvm-rg350-cc2abbbb9c7190a567aee9babc2073757a4edc0f.zip
DIRECTOR: Use pixel(0,0) for Matte ink
Diffstat (limited to 'engines')
-rw-r--r--engines/director/score.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index b8d4e3d40f..b896665a1c 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -539,7 +539,6 @@ void Frame::display(Archive &_movie, Graphics::ManagedSurface &surface, Common::
surface.blitFrom(*img.getSurface(), Common::Point(x, y));
break;
}
- surface.frameRect(drawRect, 0);
}
}
g_system->copyRectToScreen(surface.getPixels(), surface.pitch, 0, 0, surface.getBounds().width(), surface.getBounds().height());
@@ -561,13 +560,10 @@ void Frame::drawBackgndTransSprite(Graphics::ManagedSurface &target, const Graph
void Frame::drawMatteSprite(Graphics::ManagedSurface &target, const Graphics::Surface &sprite, Common::Rect &drawRect) {
//Like background trans, but all white pixels NOT ENCLOSED by coloured pixels are transparent
- uint8 skipColor = 15;
- uint8 toColor = 0; // Could be anything, not used.
-
Graphics::Surface tmp;
tmp.copyFrom(sprite);
- Graphics::FloodFill ff(&tmp, skipColor, toColor);
+ Graphics::FloodFill ff(&tmp, *(byte *)tmp.getBasePtr(0, 0), 0);
for (int yy = 0; yy < tmp.h; yy++) {
ff.addSeed(0, yy);