TONY: Animate mouse cursors.

This restores the forgotten doFrame code for RMPointer, which fixes
the bird mouse cursor. Thanks to eriktorbjorn for noticing it.
This commit is contained in:
Alyssa Milburn 2012-08-24 19:43:22 +02:00
parent aa603bc208
commit af134e0244
3 changed files with 12 additions and 2 deletions

View File

@ -1587,13 +1587,22 @@ void RMPointer::hideCursor() {
}
}
void RMPointer::doFrame() {
// Update the cursor animation if needed.
if (_nCurSpecialPointer == 0 || _nCurSpecialPointer == PTR_CUSTOM)
return;
RMGfxTargetBuffer buf;
if (_specialPointer[_nCurSpecialPointer - 1]->doFrame(&buf, false))
updateCursor();
}
void RMPointer::updateCursor() {
// Create an intermediate buffer and draw the cursor onto it
RMGfxTargetBuffer buf;
buf.create(64, 64, 16);
RMGfxPrimitive prim;
draw(Common::nullContext, buf, &prim);
// Get a pointer to the cursor data

View File

@ -98,7 +98,7 @@ public:
/**
* Process a frame
*/
void doFrame(RMGfxTargetBuffer *bigBuf);
void doFrame();
/**
* Overloading of priorities

View File

@ -310,6 +310,7 @@ SKIPCLICKSINISTRO:
} else {
_point.hideCursor();
}
_point.doFrame();
// **********************
// Draw the list in the OT