[Scummvm-cvs-logs] SF.net SVN: scummvm:[49917] scummvm/trunk/engines/sci/graphics/cursor.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Thu Jun 17 05:53:14 CEST 2010
Revision: 49917
http://scummvm.svn.sourceforge.net/scummvm/?rev=49917&view=rev
Author: mthreepwood
Date: 2010-06-17 03:53:13 +0000 (Thu, 17 Jun 2010)
Log Message:
-----------
Fix a valgrind warning in GfxCursor. Thanks to digitall for finding it.
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-06-17 03:22:52 UTC (rev 49916)
+++ scummvm/trunk/engines/sci/graphics/cursor.cpp 2010-06-17 03:53:13 UTC (rev 49917)
@@ -43,11 +43,11 @@
: _resMan(resMan), _palette(palette), _screen(screen) {
_upscaledHires = _screen->getUpscaledHires();
+ _isVisible = true;
+
// center mouse cursor
setPosition(Common::Point(_screen->getWidth() / 2, _screen->getHeight() / 2));
kernelSetMoveZone(Common::Rect(0, 0, _screen->getDisplayWidth(), _screen->getDisplayHeight()));
-
- _isVisible = true;
}
GfxCursor::~GfxCursor() {
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