MOHAWK: Start implementing opcodes using the animated update feature
svn-id: r54627
This commit is contained in:
parent
90b336ec34
commit
b49cb3b35a
6 changed files with 86 additions and 121 deletions
|
@ -299,6 +299,33 @@ void MystGraphics::updateScreen() {
|
|||
}
|
||||
}
|
||||
|
||||
void MystGraphics::animatedUpdate(uint16 type, Common::Rect rect, uint16 steps, uint16 delay) {
|
||||
// Bypass dirty rects for animated updates
|
||||
_dirtyRects.clear();
|
||||
|
||||
switch (type) {
|
||||
case 0:
|
||||
debugC(kDebugScript, "Left to Right");
|
||||
break;
|
||||
case 1:
|
||||
debugC(kDebugScript, "Right to Left");
|
||||
break;
|
||||
case 5:
|
||||
debugC(kDebugScript, "Top to Bottom");
|
||||
break;
|
||||
case 6:
|
||||
debugC(kDebugScript, "Bottom to Top");
|
||||
break;
|
||||
default:
|
||||
warning("Unknown Update Direction");
|
||||
break;
|
||||
}
|
||||
|
||||
//TODO: Replace minimal implementation
|
||||
_dirtyRects.push_back(rect);
|
||||
updateScreen();
|
||||
}
|
||||
|
||||
void MystGraphics::drawRect(Common::Rect rect, RectState state) {
|
||||
// Useful with debugging. Shows where hotspots are on the screen and whether or not they're active.
|
||||
if (rect.left < 0 || rect.top < 0 || rect.right > 544 || rect.bottom > 333 || !rect.isValidRect() || rect.width() == 0 || rect.height() == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue