[Scummvm-cvs-logs] SF.net SVN: scummvm: [23094] scummvm/trunk/engines/scumm/he/wiz_he.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Tue Jun 13 20:37:44 CEST 2006


Revision: 23094
Author:   eriktorbjorn
Date:     2006-06-13 11:37:40 -0700 (Tue, 13 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=23094&view=rev

Log Message:
-----------
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().

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/he/wiz_he.cpp
Modified: scummvm/trunk/engines/scumm/he/wiz_he.cpp
===================================================================
--- scummvm/trunk/engines/scumm/he/wiz_he.cpp	2006-06-13 18:33:58 UTC (rev 23093)
+++ scummvm/trunk/engines/scumm/he/wiz_he.cpp	2006-06-13 18:37:40 UTC (rev 23094)
@@ -1523,8 +1523,8 @@
 	uint8 *cursor = drawWizImage(resId, 0, 0, 0, 0, 0, 0, r, kWIFBlitToMemBuffer, 0, 0);
 	int32 cw, ch;
 	getWizImageDim(resId, 0, cw, ch);
+	_vm->setCursorHotspot(x, y);
 	_vm->setCursorFromBuffer(cursor, cw, ch, cw);
-	_vm->setCursorHotspot(x, y);
 
 	// Since we set up cursor palette for default cursor, disable it now
 	PaletteMan.disableCursorPalette(true);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list