aboutsummaryrefslogtreecommitdiff
path: root/engines/sky
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-06-21 06:17:36 +0000
committerTorbjörn Andersson2006-06-21 06:17:36 +0000
commit08c2e219010fee2d30b613d75ab048c53d4b6b93 (patch)
treef0961ba9f0756276e05fd510bac0bd1c206e68d9 /engines/sky
parent7d334b75a69c0de2fe6671c34d1b7944cc748b3c (diff)
downloadscummvm-rg350-08c2e219010fee2d30b613d75ab048c53d4b6b93.tar.gz
scummvm-rg350-08c2e219010fee2d30b613d75ab048c53d4b6b93.tar.bz2
scummvm-rg350-08c2e219010fee2d30b613d75ab048c53d4b6b93.zip
Initialise the control panel's _mouseX / _mouseY. Fixes a Valgrind warning.
svn-id: r23212
Diffstat (limited to 'engines/sky')
-rw-r--r--engines/sky/control.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sky/control.cpp b/engines/sky/control.cpp
index 7407a30778..a53a6b899d 100644
--- a/engines/sky/control.cpp
+++ b/engines/sky/control.cpp
@@ -253,6 +253,9 @@ void Control::initPanel(void) {
_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