[Scummvm-cvs-logs] SF.net SVN: scummvm:[53054] scummvm/trunk/engines/sci/graphics/cursor.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Thu Oct 7 22:00:32 CEST 2010
Revision: 53054
http://scummvm.svn.sourceforge.net/scummvm/?rev=53054&view=rev
Author: thebluegr
Date: 2010-10-07 20:00:32 +0000 (Thu, 07 Oct 2010)
Log Message:
-----------
SCI: bugfix for magnifier cursors
When deleting the resources related to magnifier cursors, zero them out
as well. Fixes crash when exiting a game after using a magnifier cursor
Modified Paths:
--------------
scummvm/trunk/engines/sci/graphics/cursor.cpp
Modified: scummvm/trunk/engines/sci/graphics/cursor.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/cursor.cpp 2010-10-07 19:27:11 UTC (rev 53053)
+++ scummvm/trunk/engines/sci/graphics/cursor.cpp 2010-10-07 20:00:32 UTC (rev 53054)
@@ -409,8 +409,11 @@
_zoomMultiplier = 0;
_zoomZoneActive = false;
delete _zoomCursorView;
+ _zoomCursorView = 0;
delete _zoomPicView;
+ _zoomPicView = 0;
delete[] _cursorSurface;
+ _cursorSurface = 0;
}
void GfxCursor::kernelSetZoomZone(byte multiplier, Common::Rect zone, GuiResourceId viewNum, int loopNum, int celNum, GuiResourceId picNum, byte zoomColor) {
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