aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/cursor.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2010-06-17 03:53:13 +0000
committerMatthew Hoops2010-06-17 03:53:13 +0000
commit6ee4bf06ade5fdc6158d55b10cd73b1bf9377941 (patch)
tree2b280ebaaae2a7a5b43228db8ab7a4a22002eccf /engines/sci/graphics/cursor.cpp
parente5f609a40ab68cad298b75a3d69a7d61e7b79e70 (diff)
downloadscummvm-rg350-6ee4bf06ade5fdc6158d55b10cd73b1bf9377941.tar.gz
scummvm-rg350-6ee4bf06ade5fdc6158d55b10cd73b1bf9377941.tar.bz2
scummvm-rg350-6ee4bf06ade5fdc6158d55b10cd73b1bf9377941.zip
Fix a valgrind warning in GfxCursor. Thanks to digitall for finding it.
svn-id: r49917
Diffstat (limited to 'engines/sci/graphics/cursor.cpp')
-rw-r--r--engines/sci/graphics/cursor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/cursor.cpp b/engines/sci/graphics/cursor.cpp
index 46bd981b7f..2930bb8a46 100644
--- a/engines/sci/graphics/cursor.cpp
+++ b/engines/sci/graphics/cursor.cpp
@@ -43,11 +43,11 @@ GfxCursor::GfxCursor(ResourceManager *resMan, GfxPalette *palette, GfxScreen *sc
: _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() {