diff options
| author | Alyssa Milburn | 2012-08-29 09:13:37 +0200 |
|---|---|---|
| committer | Alyssa Milburn | 2012-08-29 09:13:43 +0200 |
| commit | 985151fe13d878739287be7827e9b6168010e3ea (patch) | |
| tree | cf06ae992000ae92fb13b1356d0910f6a30f9de6 | |
| parent | a6673aaf906505341d8ef259db69efc0f4c540fe (diff) | |
| download | scummvm-rg350-985151fe13d878739287be7827e9b6168010e3ea.tar.gz scummvm-rg350-985151fe13d878739287be7827e9b6168010e3ea.tar.bz2 scummvm-rg350-985151fe13d878739287be7827e9b6168010e3ea.zip | |
TONY: Limit effect of cursor workaround.
This avoids incorrect hotspot offsets.
| -rw-r--r-- | engines/tony/game.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/tony/game.cpp b/engines/tony/game.cpp index 0793d97215..00aa9c1109 100644 --- a/engines/tony/game.cpp +++ b/engines/tony/game.cpp @@ -1485,15 +1485,15 @@ void RMPointer::draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim if (_ctx->n == TA_COMBINE) _ctx->n = TA_USE; - // WORKAROUND: updateCursor gets called too early sometimes (for example, when - // the cursor is released over the TA_PERORATE option), via setAction. - if (_ctx->n > 4) - _ctx->n = 0; - _cursorHotspot = _hotspot[_ctx->n]; // Call the Draw method of the pointer if (_nCurSpecialPointer == 0) { + // WORKAROUND: updateCursor gets called too early sometimes (for example, when + // the cursor is released over the TA_PERORATE option), via setAction. + if (_ctx->n > 4) + _ctx->n = 0; + CORO_INVOKE_2(_pointer[_ctx->n]->draw, bigBuf, prim); } else { if (_nCurSpecialPointer == PTR_CUSTOM) |
