aboutsummaryrefslogtreecommitdiff
path: root/graphics/cursorman.cpp
diff options
context:
space:
mode:
authorD G Turner2013-09-30 04:47:11 +0100
committerD G Turner2013-09-30 04:47:11 +0100
commitb6fbc3f4c65a4a4d31a98ee729ca3fc950085425 (patch)
treee5cfe7e6d28e175f863c975f21a37dfbf7fd7eff /graphics/cursorman.cpp
parentf9cf18b95f1065449307cfb13d82eeeef77727e8 (diff)
downloadscummvm-rg350-b6fbc3f4c65a4a4d31a98ee729ca3fc950085425.tar.gz
scummvm-rg350-b6fbc3f4c65a4a4d31a98ee729ca3fc950085425.tar.bz2
scummvm-rg350-b6fbc3f4c65a4a4d31a98ee729ca3fc950085425.zip
GRAPHICS: Fix uninitialized cursor visibility variable. CID 1002283.
The default at cursor construction has been set to not visible. This now requires an explicit call to setVisible(true) to show the cursor, but a basic test shows that this seems to be OK and engines which fail to do this would have been intermittently broken before.
Diffstat (limited to 'graphics/cursorman.cpp')
-rw-r--r--graphics/cursorman.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/graphics/cursorman.cpp b/graphics/cursorman.cpp
index 6825767dfd..133ee5fd71 100644
--- a/graphics/cursorman.cpp
+++ b/graphics/cursorman.cpp
@@ -253,6 +253,7 @@ CursorManager::Cursor::Cursor(const void *data, uint w, uint h, int hotspotX, in
_hotspotX = hotspotX;
_hotspotY = hotspotY;
_dontScale = dontScale;
+ _visible = false;
}
CursorManager::Cursor::~Cursor() {