DIRECTOR: Set the backgroundcolor

The background color is called stageColor in Director.
Director uses a palette with 256 colors.

The colors in the Palette have an offset of 255.
This commit is contained in:
Roland van Laar 2020-02-23 14:58:10 +01:00 committed by Eugene Sandulenko
parent e700b5a2bc
commit 7c94239220

View File

@ -1387,10 +1387,7 @@ void Score::startLoop() {
g_director->_wm->setScreen(_surface);
if (_stageColor == 0)
_trailSurface->clear(_vm->getPaletteColorCount() - 1);
else
_trailSurface->clear(_stageColor);
_trailSurface->clear(255 - _stageColor);
_currentFrame = 0;
_stopPlay = false;
@ -1469,7 +1466,7 @@ void Score::update() {
debugC(1, kDebugImages, "****************************** Current frame: %d", _currentFrame);
_surface->clear();
_surface->clear(255 - _stageColor);
_surface->copyFrom(*_trailSurface);
_lingo->executeImmediateScripts(_frames[_currentFrame]);