From 0d1955700e64b3d43f1d302ae0bb76c69918e923 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Sat, 8 Jan 2011 17:27:02 +0000 Subject: [PATCH] MOHAWK: Set needsRedraw when changing LB palettes. svn-id: r55169 --- engines/mohawk/livingbooks.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 1b88bf16f86..fbdccb5d705 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; }