mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-08 19:00:57 +00:00
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:
parent
e700b5a2bc
commit
7c94239220
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user