diff options
| author | Eugene Sandulenko | 2016-06-04 00:29:36 +0200 | 
|---|---|---|
| committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 | 
| commit | cc2abbbb9c7190a567aee9babc2073757a4edc0f (patch) | |
| tree | 755d0653160bbbd7f2f4d306c68719b8a973bf1d | |
| parent | 06a655ff9d9ca6bead06408b12fd1f76cc5a62cf (diff) | |
| download | scummvm-rg350-cc2abbbb9c7190a567aee9babc2073757a4edc0f.tar.gz scummvm-rg350-cc2abbbb9c7190a567aee9babc2073757a4edc0f.tar.bz2 scummvm-rg350-cc2abbbb9c7190a567aee9babc2073757a4edc0f.zip | |
DIRECTOR: Use pixel(0,0) for Matte ink
| -rw-r--r-- | engines/director/score.cpp | 6 | 
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); | 
