[Scummvm-cvs-logs] SF.net SVN: scummvm: [23213] scummvm/branches/branch-0-9-0/engines/sky/control.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Wed Jun 21 08:18:44 CEST 2006


Revision: 23213
Author:   eriktorbjorn
Date:     2006-06-20 23:18:40 -0700 (Tue, 20 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=23213&view=rev

Log Message:
-----------
Initialise the control panel's _mouseX / _mouseY. Fixes a Valgrind warning.

Modified Paths:
--------------
    scummvm/branches/branch-0-9-0/engines/sky/control.cpp
Modified: scummvm/branches/branch-0-9-0/engines/sky/control.cpp
===================================================================
--- scummvm/branches/branch-0-9-0/engines/sky/control.cpp	2006-06-21 06:17:36 UTC (rev 23212)
+++ scummvm/branches/branch-0-9-0/engines/sky/control.cpp	2006-06-21 06:18:40 UTC (rev 23213)
@@ -253,6 +253,9 @@
 	_screenBuf = (uint8 *)malloc(GAME_SCREEN_WIDTH * FULL_SCREEN_HEIGHT);
 	memset(_screenBuf, 0, GAME_SCREEN_WIDTH * FULL_SCREEN_HEIGHT);
 
+	_mouseX = _skyMouse->giveMouseX();
+	_mouseY = _skyMouse->giveMouseY();
+
 	uint16 volY = (127 - _skyMusic->giveVolume()) / 4 + 59 - MPNL_Y; // volume slider's Y coordinate
 	uint16 spdY = (SkyEngine::_systemVars.gameSpeed - 2) / SPEED_MULTIPLY;
 	spdY += MPNL_Y + 83; // speed slider's initial position


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