[Scummvm-cvs-logs] SF.net SVN: scummvm:[55169] scummvm/trunk/engines/mohawk/livingbooks.cpp
fuzzie at users.sourceforge.net
fuzzie at users.sourceforge.net
Sat Jan 8 18:27:02 CET 2011
Revision: 55169
http://scummvm.svn.sourceforge.net/scummvm/?rev=55169&view=rev
Author: fuzzie
Date: 2011-01-08 17:27:02 +0000 (Sat, 08 Jan 2011)
Log Message:
-----------
MOHAWK: Set needsRedraw when changing LB palettes.
Modified Paths:
--------------
scummvm/trunk/engines/mohawk/livingbooks.cpp
Modified: scummvm/trunk/engines/mohawk/livingbooks.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/livingbooks.cpp 2011-01-08 17:26:39 UTC (rev 55168)
+++ scummvm/trunk/engines/mohawk/livingbooks.cpp 2011-01-08 17:27:02 UTC (rev 55169)
@@ -2902,8 +2902,10 @@
_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 @@
}
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;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list