From b6fbc3f4c65a4a4d31a98ee729ca3fc950085425 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Mon, 30 Sep 2013 04:47:11 +0100 Subject: 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. --- graphics/cursorman.cpp | 1 + 1 file changed, 1 insertion(+) 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() { -- cgit v1.2.3