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:
Torbjörn Andersson
2006-06-13 18:37:40 +00:00
parent 9458fd5cff
commit 94de874087
+1 -1
View File
@@ -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);