aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-06-13 18:37:40 +0000
committerTorbjörn Andersson2006-06-13 18:37:40 +0000
commit94de8740870e3152c6ec951e1909005ec8d93975 (patch)
treeae92c1822ac1c508027a818bfdbe8eb31ea9c0a5 /engines
parent9458fd5cff24aa568b17c5a5a2301c6bda5d6789 (diff)
downloadscummvm-rg350-94de8740870e3152c6ec951e1909005ec8d93975.tar.gz
scummvm-rg350-94de8740870e3152c6ec951e1909005ec8d93975.tar.bz2
scummvm-rg350-94de8740870e3152c6ec951e1909005ec8d93975.zip
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
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/he/wiz_he.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp
index 51763bff7f..4636090d42 100644
--- a/engines/scumm/he/wiz_he.cpp
+++ b/engines/scumm/he/wiz_he.cpp
@@ -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);