[Scummvm-git-logs] scummvm master -> 7c942392208df550b1c86db0677e77c8d92554f3
sev-
sev at scummvm.org
Sun Feb 23 14:15:26 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
7c94239220 DIRECTOR: Set the backgroundcolor
Commit: 7c942392208df550b1c86db0677e77c8d92554f3
https://github.com/scummvm/scummvm/commit/7c942392208df550b1c86db0677e77c8d92554f3
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2020-02-23T15:15:22+01:00
Commit Message:
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.
Changed paths:
engines/director/score.cpp
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 9a17267..9bacd0e 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -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]);
More information about the Scummvm-git-logs
mailing list