[Scummvm-cvs-logs] scummvm master -> b6fbc3f4c65a4a4d31a98ee729ca3fc950085425

digitall dgturner at iee.org
Mon Sep 30 05:47:08 CEST 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
b6fbc3f4c6 GRAPHICS: Fix uninitialized cursor visibility variable. CID 1002283.


Commit: b6fbc3f4c65a4a4d31a98ee729ca3fc950085425
    https://github.com/scummvm/scummvm/commit/b6fbc3f4c65a4a4d31a98ee729ca3fc950085425
Author: D G Turner (digitall at scummvm.org)
Date: 2013-09-29T20:47:11-07:00

Commit Message:
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.

Changed paths:
    graphics/cursorman.cpp



diff --git a/graphics/cursorman.cpp b/graphics/cursorman.cpp
index 6825767..133ee5f 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() {






More information about the Scummvm-git-logs mailing list