mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 16:03:24 +00:00
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:
parent
aa603bc208
commit
af134e0244
@ -1587,6 +1587,15 @@ 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
|
||||
|
@ -98,7 +98,7 @@ public:
|
||||
/**
|
||||
* Process a frame
|
||||
*/
|
||||
void doFrame(RMGfxTargetBuffer *bigBuf);
|
||||
void doFrame();
|
||||
|
||||
/**
|
||||
* Overloading of priorities
|
||||
|
@ -310,6 +310,7 @@ SKIPCLICKSINISTRO:
|
||||
} else {
|
||||
_point.hideCursor();
|
||||
}
|
||||
_point.doFrame();
|
||||
|
||||
// **********************
|
||||
// Draw the list in the OT
|
||||
|
Loading…
x
Reference in New Issue
Block a user