diff options
author | Alyssa Milburn | 2011-01-08 17:27:02 +0000 |
---|---|---|
committer | Alyssa Milburn | 2011-01-08 17:27:02 +0000 |
commit | 0d1955700e64b3d43f1d302ae0bb76c69918e923 (patch) | |
tree | 7e50c6f226330e7389d276ce106dfceda8a65184 | |
parent | 896d4947daa722b16e7734c0ec8a59b616a812be (diff) | |
download | scummvm-rg350-0d1955700e64b3d43f1d302ae0bb76c69918e923.tar.gz scummvm-rg350-0d1955700e64b3d43f1d302ae0bb76c69918e923.tar.bz2 scummvm-rg350-0d1955700e64b3d43f1d302ae0bb76c69918e923.zip |
MOHAWK: Set needsRedraw when changing LB palettes.
svn-id: r55169
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 1b88bf16f8..fbdccb5d70 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -2902,8 +2902,10 @@ void LBPaletteItem::update() { _fadeInCurrent = divTime; // TODO: actual fading-in - if (_visible && _globalVisible) + if (_visible && _globalVisible) { _vm->_system->setPalette(_palette + _drawStart * 4, _drawStart, _drawCount); + _vm->_needsRedraw = true; + } } if (elapsedTime >= (uint32)_fadeInPeriod * (uint32)_fadeInStep) { @@ -3005,9 +3007,10 @@ bool LBLiveTextItem::contains(Common::Point point) { } void LBLiveTextItem::paletteUpdate(uint16 word, bool on) { + _vm->_needsRedraw = true; + if (_resourceId) { // with a resource, we draw a bitmap in draw() rather than changing the palette - _vm->_needsRedraw = true; return; } |