mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Since setCursorHotspot() does not update the cursor (should it?), we have to
call it before setCursorFromBuffer(), not afterwards. This fixes the cursor hotspot being temporarily wrong in HE games that use loadWizCursor(). svn-id: r23094
This commit is contained in:
@@ -1523,8 +1523,8 @@ void Wiz::loadWizCursor(int resId) {
|
||||
uint8 *cursor = drawWizImage(resId, 0, 0, 0, 0, 0, 0, r, kWIFBlitToMemBuffer, 0, 0);
|
||||
int32 cw, ch;
|
||||
getWizImageDim(resId, 0, cw, ch);
|
||||
_vm->setCursorFromBuffer(cursor, cw, ch, cw);
|
||||
_vm->setCursorHotspot(x, y);
|
||||
_vm->setCursorFromBuffer(cursor, cw, ch, cw);
|
||||
|
||||
// Since we set up cursor palette for default cursor, disable it now
|
||||
PaletteMan.disableCursorPalette(true);
|
||||
|
||||
Reference in New Issue
Block a user