mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
MOHAWK: Set needsRedraw when changing LB palettes.
svn-id: r55169
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user